/* ==========================================================================
   G-UNIVERSE DESIGN TOKENS — CANONICAL SOURCE
   All projects MUST derive their variables from this file (copy + extend).
   Theme: Subtle Blue & White, Premium Light/Dark, Glassmorphism
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-primary: #f5f8fc;
  --bg-secondary: #ffffff;
  --bg-secondary-rgb: 255, 255, 255;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-inset: #f0f4f9;
  --border-color: #e2ebf4;
  --border-subtle: #eaecf4;

  /* Text */
  --text-primary: #1a253c;
  --text-secondary: #5a6e85;
  --text-muted: #8fa0b5;

  /* Primary accent blues */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eef2ff;
  --accent-color: #0ea5e9;
  --accent-light: #f0f9ff;

  /* Semantic */
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #3b82f6;
  --info-light: #eff6ff;

  /* Typography */
  --font-primary: 'Inter', 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: SFMono-Regular, Consolas, 'JetBrains Mono', Menlo, monospace;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow: 0 10px 30px rgba(37, 99, 235, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --modal-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 12px 35px rgba(37, 99, 235, 0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Motion */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 1024px;
  --navbar-height: 64px;
  --sidebar-width: 240px;

  /* Spacing scale (base 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
}

/* Dark theme overrides — project must add class/data-theme + copy these */
body.dark-theme {
  --bg-primary: #0a0e1a;
  --bg-secondary: #121826;
  --bg-secondary-rgb: 18, 24, 38;
  --bg-card: rgba(18, 24, 38, 0.8);
  --bg-inset: #0d1322;
  --border-color: #202b3f;
  --border-subtle: #1e2235;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e293b;
  --accent-color: #38bdf8;
  --accent-light: #0c4a6e;
  --success: #10b981;
  --success-light: #064e3b;
  --warning: #fbbf24;
  --warning-light: #78350f;
  --danger: #f87171;
  --danger-light: #7f1d1d;
  --info: #60a5fa;
  --info-light: #1e3a8a;
  --card-shadow: 0 10px 35px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  --modal-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
