/* StarGaze Weather Conditions - Theme Variables */

:root {
    /* Color Palette - Light Theme (default) */
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    --color-surface-hover: #f1f5f9;
    
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #94a3b8;
    --color-text-inverse: #ffffff;
    
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-accent-light: #dbeafe;
    
    /* Rating Colors */
    --color-excellent: #22c55e;
    --color-excellent-bg: #dcfce7;
    --color-good: #3b82f6;
    --color-good-bg: #dbeafe;
    --color-fair: #eab308;
    --color-fair-bg: #fef9c3;
    --color-poor: #ef4444;
    --color-poor-bg: #fee2e2;
    
    /* Twilight Phase Colors */
    --color-daylight: #fbbf24;
    --color-civil-twilight: #f97316;
    --color-nautical-twilight: #8b5cf6;
    --color-astronomical-twilight: #4f46e5;
    --color-true-night: #1e1b4b;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-surface-hover: #475569;
    
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-tertiary: #64748b;
    --color-text-inverse: #0f172a;
    
    --color-border: #334155;
    --color-border-light: #1e293b;
    
    --color-accent: #60a5fa;
    --color-accent-hover: #93c5fd;
    --color-accent-light: #1e3a5f;
    
    /* Rating Colors - Adjusted for dark mode */
    --color-excellent-bg: #14532d;
    --color-good-bg: #1e3a8a;
    --color-fair-bg: #713f12;
    --color-poor-bg: #7f1d1d;
    
    /* Shadows - Deeper for dark mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* System preference detection - default to dark if no preference set */
/* System prefers light: use light theme unless dark is explicitly set */
/* Light is already the default, so no additional rules needed */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-background: #0f172a;
        --color-surface: #1e293b;
        --color-surface-elevated: #334155;
        --color-surface-hover: #475569;
        
        --color-text-primary: #f1f5f9;
        --color-text-secondary: #94a3b8;
        --color-text-tertiary: #64748b;
        --color-text-inverse: #0f172a;
        
        --color-border: #334155;
        --color-border-light: #1e293b;
        
        --color-accent: #60a5fa;
        --color-accent-hover: #93c5fd;
        --color-accent-light: #1e3a5f;
        
        --color-excellent-bg: #14532d;
        --color-good-bg: #1e3a8a;
        --color-fair-bg: #713f12;
        --color-poor-bg: #7f1d1d;
        
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    }
}
