/**
 * MusicFlow - Light Theme
 * Override dark theme variables for light mode
 */

[data-bs-theme="light"],
.theme-light {
    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;
    --bg-active: #cbd5e1;
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Primary (keep purple) */
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --primary-rgb: 124, 58, 237;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Header in light mode */
[data-bs-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

/* Cards */
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .music-card,
[data-bs-theme="light"] .artist-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="light"] .card:hover,
[data-bs-theme="light"] .music-card:hover {
    box-shadow: var(--shadow-md);
}

/* Player bar */
[data-bs-theme="light"] .player-bar {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .player-bar .player-progress-bar {
    background: var(--border-color);
}

/* Inputs */
[data-bs-theme="light"] input,
[data-bs-theme="light"] select,
[data-bs-theme="light"] textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="light"] input:focus,
[data-bs-theme="light"] select:focus,
[data-bs-theme="light"] textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Buttons */
[data-bs-theme="light"] .btn-ghost {
    color: var(--text-secondary);
}

[data-bs-theme="light"] .btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-bs-theme="light"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Dropdowns */
[data-bs-theme="light"] .dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-bs-theme="light"] .dropdown-menu a:hover {
    background: var(--bg-tertiary);
}

/* Mobile menu */
[data-bs-theme="light"] .mobile-menu {
    background: var(--bg-secondary);
}

/* Footer */
[data-bs-theme="light"] .site-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

/* Modals */
[data-bs-theme="light"] .auth-modal,
[data-bs-theme="light"] .playlist-modal {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
}

/* Search */
[data-bs-theme="light"] .search-input-large .search-input,
[data-bs-theme="light"] .header-search input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-bs-theme="light"] .search-dropdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Track items */
[data-bs-theme="light"] .track-item:hover,
[data-bs-theme="light"] .track-item-search:hover {
    background: var(--bg-tertiary);
}

/* Tabs */
[data-bs-theme="light"] .search-tab {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-bs-theme="light"] .search-tab:hover {
    background: var(--bg-hover);
}

/* Filters */
[data-bs-theme="light"] .search-filters {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-bs-theme="light"] .filter-select {
    background: var(--bg-secondary);
}

/* Empty state */
[data-bs-theme="light"] .empty-state-icon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Scrollbars */
[data-bs-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Queue panel */
[data-bs-theme="light"] .queue-panel {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
}

/* Fullscreen player */
[data-bs-theme="light"] .player-fullscreen {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

/* Alert/Toast */
[data-bs-theme="light"] .flash-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Badges */
[data-bs-theme="light"] .badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Auth pages */
[data-bs-theme="light"] .auth-page {
    background: var(--gradient-bg);
}

[data-bs-theme="light"] .auth-card {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
}

/* Settings */
[data-bs-theme="light"] .settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Smooth transition */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
