/* ============================================
   LUMINATA — Design System Variables
   ============================================ */

:root {
  /* --- Typography --- */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* --- Font Size Scale --- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* --- Letter Spacing --- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.15em;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* --- Shadows (dark theme) --- */
  --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-glow-orange: 0 0 20px rgba(232,146,74,0.15);
  --shadow-glow-blue: 0 0 20px rgba(91,141,239,0.15);
  --shadow-glow-purple: 0 0 20px rgba(155,122,216,0.15);

  /* --- Accent Colors (muted syntax-highlighting style) --- */
  --accent-orange: #e8924a;
  --accent-blue: #5b8def;
  --accent-green: #5ec269;
  --accent-purple: #9b7ad8;
  --accent-cyan: #4ecdc4;
  --accent-rose: #d4687a;
  --accent-yellow: #eab308;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 64px;

  /* --- Z-index --- */
  --z-nav: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* ============================================
   DARK THEME (default)
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #141420;
  --bg-tertiary: #1a1a26;
  --bg-card: #181824;
  --bg-card-hover: #1f1f2e;
  --bg-nav: rgba(10, 10, 15, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-active: rgba(232, 146, 74, 0.3);

  --text-primary: #e2e2ea;
  --text-secondary: #9595ae;
  --text-muted: #8a8aa4;
  --text-inverse: #0a0a0f;

  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #12121f 50%, #0f0a18 100%);
  --gradient-card: linear-gradient(135deg, var(--bg-card) 0%, rgba(26,26,38,0.5) 100%);

  --dot-color: rgba(255,255,255,0.03);

  color-scheme: dark;
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f6f6fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ededf4;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fd;
  --bg-nav: rgba(246, 246, 251, 0.9);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --border-active: rgba(232, 146, 74, 0.35);

  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #6b6b85;
  --text-inverse: #f6f6fb;

  /* --- Accent Text Colors (WCAG AA on light backgrounds) --- */
  --accent-orange-text: #995a18;
  --accent-blue-text: #3a6bc7;
  --accent-green-text: #2d7a35;
  --accent-purple-text: #7054a8;
  --accent-cyan-text: #147068;
  --accent-rose-text: #b04858;
  --accent-yellow-text: #9a7a08;

  --gradient-hero: linear-gradient(135deg, #f6f6fb 0%, #eeeef8 50%, #f0ecf6 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f8fd 100%);

  --dot-color: rgba(0,0,0,0.03);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow-orange: 0 0 20px rgba(232,146,74,0.1);
  --shadow-glow-blue: 0 0 20px rgba(91,141,239,0.1);
  --shadow-glow-purple: 0 0 20px rgba(155,122,216,0.1);

  color-scheme: light;
}
