/* YouTube Downloader - Estilos */

:root {
    --primary-color: #0066FF;
    --primary-light: #00D4FF;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-muted: #a0a0a0;
    --border-color: rgba(0, 102, 255, 0.1);
    --success-color: #10b981;
    --error-color: #ef4444;
}

.ytd-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.ytd-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.ytd-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.ytd-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.ytd-form-group {
    margin-bottom: 20px;
}

.ytd-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.ytd-input,
.ytd-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.ytd-input:focus,
.ytd-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.ytd-input::placeholder {
    color: var(--text-muted);
}

.ytd-button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ytd-button:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.ytd-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.ytd-button-secondary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.ytd-button-secondary:hover {
    background: rgba(0, 102, 255, 0.2);
}

.ytd-info {
    background: rgba(0, 102, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.ytd-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success-color);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #10b981;
}

.ytd-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error-color);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ef4444;
}

.ytd-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: ytd-spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes ytd-spin {
    to { transform: rotate(360deg); }
}

.ytd-video-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.ytd-video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ytd-video-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ytd-quality-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.ytd-quality-option {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ytd-quality-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

.ytd-quality-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.ytd-download-link {
    display: inline-block;
    background: var(--success-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ytd-download-link:hover {
    background: #059669;
    transform: translateY(-2px);
}

.ytd-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.ytd-feature {
    text-align: center;
    padding: 20px;
}

.ytd-feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.ytd-feature-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ytd-feature-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .ytd-container {
        margin: 20px auto;
    }

    .ytd-card {
        padding: 20px;
    }

    .ytd-title {
        font-size: 24px;
    }

    .ytd-quality-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ytd-features {
        grid-template-columns: 1fr;
    }
}
