/* ==========================================================================
   DESIGN TOKENS - Cyril Guilleminot Gaming Consulting
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     COLORS - Cyberpunk/Synthwave Palette
     ------------------------------------------------------------------------- */

  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;

  /* Neon Accent Colors */
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00ff;
  --neon-violet: #8b5cf6;
  --neon-pink: #f72585;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b80;

  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.5);
  --glow-violet: 0 0 20px rgba(139, 92, 246, 0.5);
  --glow-cyan-intense: 0 0 30px rgba(0, 245, 255, 0.7), 0 0 60px rgba(0, 245, 255, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta), var(--neon-violet));
  --gradient-card: linear-gradient(145deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.05));
  --gradient-button: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));

  /* -------------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------------- */

  /* Font Families */
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Inter', 'Roboto', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes - Fluid Typography */
  --fs-hero: clamp(2.5rem, 8vw, 5rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
  --fs-body: clamp(1rem, 2vw, 1.125rem);
  --fs-small: clamp(0.875rem, 1.5vw, 1rem);
  --fs-xs: 0.75rem;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;

  /* -------------------------------------------------------------------------
     SPACING
     ------------------------------------------------------------------------- */

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-section: clamp(4rem, 10vh, 8rem);

  /* -------------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------------- */

  --container-max: 1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);
  --nav-height: 70px;

  /* -------------------------------------------------------------------------
     BORDERS & RADIUS
     ------------------------------------------------------------------------- */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50px;

  --border-subtle: 1px solid rgba(0, 245, 255, 0.1);
  --border-accent: 1px solid rgba(0, 245, 255, 0.3);

  /* -------------------------------------------------------------------------
     TRANSITIONS
     ------------------------------------------------------------------------- */

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* -------------------------------------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------------------------------------- */

  --z-background: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* -------------------------------------------------------------------------
   LIGHT MODE
   ------------------------------------------------------------------------- */

[data-theme="light"] {
  /* Background Colors */
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;

  /* Neon Accent Colors - slightly darker for contrast on light bg */
  --neon-cyan: #0099aa;
  --neon-magenta: #cc00cc;
  --neon-violet: #7c3aed;
  --neon-pink: #db2777;

  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #6b6b80;

  /* Glow Effects - subtler on light mode */
  --glow-cyan: 0 4px 20px rgba(0, 153, 170, 0.15);
  --glow-magenta: 0 4px 20px rgba(204, 0, 204, 0.15);
  --glow-violet: 0 4px 20px rgba(124, 58, 237, 0.15);
  --glow-cyan-intense: 0 4px 30px rgba(0, 153, 170, 0.25);

  /* Gradients */
  --gradient-card: linear-gradient(145deg, rgba(0, 153, 170, 0.05), rgba(204, 0, 204, 0.03));

  /* Borders */
  --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
  --border-accent: 1px solid rgba(0, 153, 170, 0.3);
}

/* Explicit dark mode (overrides system light preference) */
:root[data-theme="dark"] {
  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;

  /* Neon Accent Colors */
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff00ff;
  --neon-violet: #8b5cf6;
  --neon-pink: #f72585;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b80;

  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.5);
  --glow-violet: 0 0 20px rgba(139, 92, 246, 0.5);
  --glow-cyan-intense: 0 0 30px rgba(0, 245, 255, 0.7), 0 0 60px rgba(0, 245, 255, 0.3);

  /* Gradients */
  --gradient-card: linear-gradient(145deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.05));

  /* Borders */
  --border-subtle: 1px solid rgba(0, 245, 255, 0.1);
  --border-accent: 1px solid rgba(0, 245, 255, 0.3);
}

/* System preference: light mode */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* Background Colors */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;

    /* Neon Accent Colors */
    --neon-cyan: #0099aa;
    --neon-magenta: #cc00cc;
    --neon-violet: #7c3aed;
    --neon-pink: #db2777;

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #6b6b80;

    /* Glow Effects */
    --glow-cyan: 0 4px 20px rgba(0, 153, 170, 0.15);
    --glow-magenta: 0 4px 20px rgba(204, 0, 204, 0.15);
    --glow-violet: 0 4px 20px rgba(124, 58, 237, 0.15);
    --glow-cyan-intense: 0 4px 30px rgba(0, 153, 170, 0.25);

    /* Gradients */
    --gradient-card: linear-gradient(145deg, rgba(0, 153, 170, 0.05), rgba(204, 0, 204, 0.03));

    /* Borders */
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --border-accent: 1px solid rgba(0, 153, 170, 0.3);
  }
}
