/* ========================================
   THEME.CSS - Color Variables & Themes
   ======================================== */

:root {
    /* Light Theme (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --input-bg: #f1f5f9;
    
    --glow-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.5);
    
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #1e293b;
    --input-bg: #334155;
    
    --glow-color: rgba(129, 140, 248, 0.5);
}

/* Low-Spec Mode Overrides */
[data-low-spec="true"] {
    --glow-color: transparent;
}

[data-low-spec="true"] * {
    animation: none !important;
    transition: none !important;
}

/* High Contrast Mode */
[data-contrast="high"] {
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --border-color: #000000;
}

[data-theme="dark"][data-contrast="high"] {
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --border-color: #ffffff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
