/* ============================================================================
   PEGASSI MOTORSPORT — NEXT-GEN MINIMALIST DESIGN TOKENS
   A radical, ultra-premium, zero-compromise dark aesthetic.
   ============================================================================ */

:root {
    /* ── Colors: The Void & The Light ─────────────────────────────────────── */
    --color-bg: #050505;
    --color-surface: #0a0a0a;
    --color-surface-elevated: #111111;
    --color-surface-glass: rgba(10, 10, 10, 0.6);
    
    --color-text: #ffffff;
    --color-text-secondary: #888888;
    --color-text-muted: #444444;

    /* Accents: Sparing, sharp, electric */
    --color-accent-primary: #F5B800; /* Gold */
    --color-accent-primary-hover: #FFD640;
    --color-accent-secondary: #B2FF05; /* Volt Green */

    /* Semantic */
    --color-danger: #ff3333;
    --color-success: #B2FF05;

    /* ── Typography: Brutalist & Refined ──────────────────────────────────── */
    /* We use Inter for everything, extremely tight and clean */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Fluid typography scale - aggressive contrasts */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: clamp(1.25rem, 3vw, 1.5rem);
    --text-2xl: clamp(1.75rem, 5vw, 2.25rem);
    --text-3xl: clamp(2.5rem, 8vw, 3.5rem);
    --text-4xl: clamp(3.5rem, 10vw, 5rem);
    --text-5xl: clamp(4.5rem, 12vw, 7.5rem);

    /* ── Spacing: Generous, architectural ─────────────────────────────────── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 5rem;
    --space-8: 8rem;
    --space-9: 13rem;

    /* ── Borders & Radii: Minimalist ──────────────────────────────────────── */
    /* Zero borders where possible, or extremely faint */
    --border-faint: 1px solid rgba(255, 255, 255, 0.04);
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ── Shadows & FX: Cinematic & Ethereal ───────────────────────────────── */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-intense: 0 20px 60px rgba(0, 0, 0, 0.8);
    --glow-accent: 0 0 30px rgba(245, 184, 0, 0.15);
    --glow-accent-hover: 0 0 50px rgba(245, 184, 0, 0.3);

    /* ── Motion: Spring physics, fluid ────────────────────────────────────── */
    --spring-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
    --spring-fluid: cubic-bezier(0.1, 1, 0, 1);
    --spring-bouncy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;
    --duration-epic: 1200ms;
}

/* Legacy variables mappings to prevent breakage in un-touched files */
:root {
    --text-primary: var(--color-text);
    --color-border: rgba(255, 255, 255, 0.04);
    --radius-2xl: 32px;
    --shadow-glow-gold-intense: var(--glow-accent-hover);
    --shadow-glow-gold-lg: var(--glow-accent);
    --transition-spring: var(--duration-normal) var(--spring-bouncy);
    --transition-normal: var(--duration-normal) var(--spring-fluid);
    --font-heading: var(--font-display);
    --color-surface-hover: var(--color-surface-elevated);
    --text-muted: var(--color-text-muted);

    /* ── RGB decompositions (for rgba() usage) ─────────────────────────── */
    --color-bg-rgb: 5, 5, 5;
    --color-accent-primary-rgb: 245, 184, 0;
    --color-accent-secondary-rgb: 178, 255, 5;
    --color-green-rgb: 91, 192, 105;
    --color-danger-rgb: 255, 51, 51;
    --color-success-rgb: 178, 255, 5;
    --color-warning-rgb: 255, 193, 7;
    --color-info-rgb: 78, 168, 222;

    /* ── Semantic Colors (missing) ─────────────────────────────────────── */
    --color-green: #5bc069;
    --color-warning: #ffc107;
    --color-info: #4ea8de;
    --color-text-faint: rgba(255, 255, 255, 0.25);

    /* ── Border variants ──────────────────────────────────────────────── */
    --color-border-light: rgba(255, 255, 255, 0.08);
    --color-border-accent: rgba(245, 184, 0, 0.3);
    --color-border-green: rgba(91, 192, 105, 0.25);

    /* ── Surface / Glass variants ─────────────────────────────────────── */
    --color-glass-strong: rgba(10, 10, 10, 0.85);

    /* ── Typography weights ───────────────────────────────────────────── */
    --font-body: var(--font-sans);
    --weight-bold: 700;
    --weight-semibold: 600;

    /* ── Radii (missing) ──────────────────────────────────────────────── */
    --radius-xs: 2px;
    --radius-pill: 9999px;

    /* ── Shadows (full scale) ─────────────────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow-gold: 0 0 20px rgba(245, 184, 0, 0.2);
    --shadow-glow-green: 0 0 20px rgba(91, 192, 105, 0.2);
    --shadow-glow-danger: 0 0 20px rgba(255, 51, 51, 0.2);

    /* ── Gradients ────────────────────────────────────────────────────── */
    --gradient-gold: linear-gradient(135deg, #F5B800, #FFD640);
    --gradient-green: linear-gradient(135deg, #5bc069, #7ee88c);
    --gradient-surface: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);

    /* ── Transitions ──────────────────────────────────────────────────── */
    --transition-fast: var(--duration-fast) var(--spring-snappy);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Spacing (extended) ───────────────────────────────────────────── */
    --space-10: 20rem;
    --space-16: 40rem;

    /* ── Layout ───────────────────────────────────────────────────────── */
    --content-max-width: 1600px;
    --content-padding: var(--space-6);
    --mobile-nav-height: 64px;

    /* ── Z-index scale ────────────────────────────────────────────────── */
    --z-sidebar: 100;
    --z-mobile-nav: 200;

    /* ── Misc legacy ─────────────────────────────────────────────────── */
    --dark-secondary: #1a1a1a;
    --text-secondary: var(--color-text-secondary);

    /* ── Legacy background aliases ────────────────────────────────────── */
    --bg-card: var(--color-surface);
    --bg-dark: var(--color-bg);
    --bg-secondary: var(--color-surface-elevated);
    --dark-bg: var(--color-bg);
    --color-bg-deep: #030303;

    /* ── Legacy color aliases ─────────────────────────────────────────── */
    --color-error: var(--color-danger);
    --color-green-hover: #4cac5a;
    --danger-color: var(--color-danger);
    --info-color: var(--color-info);
    --success-color: var(--color-success);
    --primary-color: var(--color-accent-primary);
    --pegassi-green: #5bc069;
    --pegassi-yellow: #F5B800;

    /* ── Legacy typography size aliases ────────────────────────────────── */
    --font-xs: var(--text-xs);
    --font-sm: var(--text-sm);
    --font-md: var(--text-base);
    --font-lg: var(--text-lg);
    --font-xl: var(--text-xl);
    --font-2xl: var(--text-2xl);
    --text-md: var(--text-base);

    /* ── Legacy weight aliases ────────────────────────────────────────── */
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --weight-medium: 500;

    /* ── Legacy spacing aliases ───────────────────────────────────────── */
    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-3);
    --spacing-lg: var(--space-4);
    --spacing-xl: var(--space-5);

    /* ── Legacy shadow aliases ────────────────────────────────────────── */
    --shadow-2xl: 0 25px 80px rgba(0, 0, 0, 0.8);

    /* ── Legacy gradient aliases ──────────────────────────────────────── */
    --gradient-text-hero: linear-gradient(135deg, #fff 0%, var(--color-accent-primary) 50%, var(--color-accent-secondary) 100%);
}
