/* ==========================================================================
   Snake Games CMS — Design Tokens (tokens.css)
   Light-first "Emerald" theme default with seamless Dark Mode support
   ========================================================================== */

:root {
  /* Brand Accent Colors */
  --primary: #10B981;
  --primary-hover: #059669;
  --primary-light: #D1FAE5;
  --primary-rgb: 16, 185, 129;
  --accent: #059669;
  --accent-gold: #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-cyan: #06B6D4;
  --danger: #EF4444;
  --danger-hover: #DC2626;

  /* Surfaces & Backgrounds (Light Default: Emerald) */
  --bg-base: #FAFBFC;
  --bg-subtle: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;

  /* Text & Typography */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-on-primary: #FFFFFF;

  --font-heading: 'Poppins', 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.35);

  /* Radiuses */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-base: #0B0F19;
  --bg-subtle: #111726;
  --surface: #131B2E;
  --surface-hover: #1A243D;
  --surface-glass: rgba(19, 27, 46, 0.85);
  --border: #232F4D;
  --border-subtle: #19233B;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-on-primary: #FFFFFF;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 36px -6px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.45);
}
