/* ==========================================================================
   CSS Variables - Theme Configuration
   THE GROWTH GAME, LLC
   ========================================================================== */

:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);

  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-6);

  /* Header */
  --header-height: 72px;
}

/* ==========================================================================
   Light Theme (Default)
   ========================================================================== */
:root,
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f4f4f5;
  --color-surface-elevated: #ffffff;

  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.15);

  --color-text: #09090b;
  --color-text-secondary: rgba(0, 0, 0, 0.7);
  --color-text-muted: rgba(0, 0, 0, 0.5);
  --color-text-inverse: #ffffff;

  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: rgba(79, 70, 229, 0.1);
  --color-primary-glow: rgba(79, 70, 229, 0.25);

  --color-accent: #0891b2;
  --color-accent-hover: #0e7490;
  --color-accent-light: rgba(8, 145, 178, 0.1);

  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  --color-gradient-start: #6366f1;
  --color-gradient-end: #8b5cf6;
  --color-gradient-accent: #22d3ee;

  --backdrop-blur: blur(12px);
  --backdrop-blur-heavy: blur(20px);
}

/* ==========================================================================
   Dark Theme
   ========================================================================== */
[data-theme="dark"] {
  --color-bg: #030712;
  --color-bg-secondary: #0f172a;
  --color-bg-tertiary: #1e293b;
  --color-surface: #0f172a;
  --color-surface-hover: #1e293b;
  --color-surface-elevated: #1e293b;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);

  --color-text: #f9fafb;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-inverse: #0f172a;

  --color-primary: #818cf8;
  --color-primary-hover: #a5b4fc;
  --color-primary-light: rgba(129, 140, 248, 0.15);
  --color-primary-glow: rgba(129, 140, 248, 0.3);

  --color-accent: #22d3ee;
  --color-accent-hover: #67e8f9;
  --color-accent-light: rgba(34, 211, 238, 0.15);

  --color-success: #34d399;
  --color-error: #f87171;
  --color-warning: #fbbf24;

  --color-gradient-start: #818cf8;
  --color-gradient-end: #a78bfa;
  --color-gradient-accent: #22d3ee;

  --backdrop-blur: blur(12px);
  --backdrop-blur-heavy: blur(20px);
}

/* ==========================================================================
   Responsive Container
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --container-padding: var(--space-4);
    --header-height: 64px;
  }
}
