/* ═══════════════════════════════════════════════
   HESHAM KHOLEF — DESIGN TOKENS
   Global design system variables
   ═══════════════════════════════════════════════ */

:root {
    /* ─── Brand Colors ─── */
    --color-primary: #E87A1E;          /* Orange from logo */
    --color-primary-light: #F5983D;
    --color-primary-dark: #C4620E;
    --color-primary-glow: rgba(232, 122, 30, 0.3);

    --color-secondary: #4A4A4A;        /* Dark grey from logo */
    --color-secondary-light: #6B6B6B;

    /* ─── Background System ─── */
    --bg-primary: #0A0A0C;
    --bg-secondary: #111114;
    --bg-tertiary: #18181C;
    --bg-card: #1A1A1F;
    --bg-card-hover: #222228;
    --bg-elevated: #1E1E24;
    --bg-glass: rgba(18, 18, 22, 0.85);
    --bg-glass-light: rgba(255, 255, 255, 0.04);
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* ─── Text Colors ─── */
    --text-primary: #F0EDE8;
    --text-secondary: #A8A4A0;
    --text-tertiary: #6B6866;
    --text-accent: var(--color-primary);
    --text-inverse: #0A0A0C;

    /* ─── Journey (My Journey) — Earthy/Organic ─── */
    --journey-bg: #0F110E;
    --journey-accent: #7FB069;
    --journey-accent-light: #A4D68C;
    --journey-warm: #C9956B;
    --journey-earth: #8B7355;
    --journey-glow: rgba(127, 176, 105, 0.2);

    /* ─── Vision (The Vision) — Futuristic/Digital ─── */
    --vision-bg: #080B12;
    --vision-accent: #4ECDC4;
    --vision-accent-light: #7EDDD6;
    --vision-electric: #667EEA;
    --vision-pulse: #A855F7;
    --vision-glow: rgba(78, 205, 196, 0.2);

    /* ─── Semantic Colors ─── */
    --color-success: #4ADE80;
    --color-warning: #FBBF24;
    --color-error: #F87171;
    --color-info: #60A5FA;

    /* ─── Typography ─── */
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;        /* 32px */
    --text-4xl: 2.5rem;      /* 40px */
    --text-5xl: 3.5rem;      /* 56px */
    --text-6xl: 4.5rem;      /* 72px */
    --text-hero: clamp(3rem, 8vw, 6rem);

    --leading-tight: 1.15;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;

    /* ─── 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;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* ─── Layout ─── */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    --container-padding: var(--space-6);

    /* ─── Borders & Radius ─── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-medium: 1px solid rgba(255, 255, 255, 0.1);
    --border-accent: 1px solid var(--color-primary);

    /* ─── Shadows ─── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--color-primary-glow);

    /* ─── Transitions ─── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 800ms;

    /* ─── Z-Index Scale ─── */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-radio-player: 900;
    --z-back-to-top: 920;
    --z-nav-mobile: 1040;
    --z-nav: 1050;
    --z-modal: 1100;
    --z-toast: 1200;
    --z-max: 9999;

    /* ─── Radio Player ─── */
    --radio-height: 72px;
    --radio-height-expanded: 320px;
}

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

/* ─── Mobile Adjustments ─── */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-4);
        --text-hero: clamp(2rem, 10vw, 3.5rem);
        --radio-height: 64px;
    }
}
