/**
 * Sadie's F1 Pitwall - CSS Variables
 * Racing Twilight Theme
 */

:root {
    /* Primary Colors */
    --primary: #6B21A8;
    --primary-light: #8B5CF6;
    --primary-dark: #581C87;
    
    /* Secondary Colors */
    --secondary: #06B6D4;
    --secondary-light: #22D3EE;
    --secondary-dark: #0891B2;
    
    /* Accent */
    --accent: #F97316;
    --accent-light: #FB923C;
    
    /* Backgrounds */
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-elevated: #334155;
    --bg-hover: #475569;
    
    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-inverse: #0F172A;
    
    /* Semantic Colors */
    --success: #22C55E;
    --success-light: #4ADE80;
    --warning: #FBBF24;
    --warning-light: #FCD34D;
    --danger: #EF4444;
    --danger-light: #F87171;
    --info: #3B82F6;
    --info-light: #60A5FA;
    
    /* Sector Colors */
    --sector-purple: #A855F7;
    --sector-green: #22C55E;
    --sector-yellow: #FBBF24;
    
    /* Tire Compound Colors */
    --tire-soft: #EF4444;
    --tire-medium: #FBBF24;
    --tire-hard: #F8FAFC;
    --tire-intermediate: #22C55E;
    --tire-wet: #3B82F6;
    
    /* Team Colors (2025 approximate) */
    --team-redbull: #3671C6;
    --team-mclaren: #FF8000;
    --team-ferrari: #E80020;
    --team-mercedes: #27F4D2;
    --team-astonmartin: #229971;
    --team-alpine: #FF87BC;
    --team-williams: #64C4FF;
    --team-rb: #6692FF;
    --team-sauber: #52E252;
    --team-haas: #B6BABD;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-card: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    --gradient-glow: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(107, 33, 168, 0.3);
    
    /* Borders */
    --border-color: #334155;
    --border-light: #475569;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-display: 'Montserrat', var(--font-family);
    --font-family-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
    
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    --font-size-3xl: 2rem;     /* 32px */
    --font-size-4xl: 2.5rem;   /* 40px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --header-height: 56px;
    --nav-height: 64px;
    --sidebar-width: 280px;
    --max-content-width: 1440px;
    
    /* Safe areas (for mobile) */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* Dark mode is default, but define for clarity */
@media (prefers-color-scheme: light) {
    :root {
        /* Could add light mode overrides here if desired */
    }
}
