/* ==========================================================================
   Aerospace Engineering Study Portal: design tokens
   Single source of truth for colours, typography, radii and the dark/light
   themes. Extracted verbatim from the original index.html (lines 18-92);
   tools/tests/test_tokens.py guards parity while index.html still carries them.
   Load before page styles:  <link rel="stylesheet" href="assets/css/tokens.css">
   ========================================================================== */

/* ========================================================
   CSS VARIABLES & THEME SYSTEM
   ======================================================== */
:root {
  /* Typography System */
  --font-display: 'Abril Fatface', cursive, Georgia, serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Subject Accent Colors */
  --accent-fluid:      #06b6d4;
  --accent-materials:  #f59e0b;
  --accent-mechanics:  #10b981;
  --accent-maths:      #6366f1;
  --accent-business:   #ef4444;

  /* Subject Vibrant Electric Neon Accents (Dark Theme) */
  --neon-fluid:      #00f0ff;
  --neon-materials:  #ffb703;
  --neon-mechanics:  #00f59b;
  --neon-maths:      #a78bfa;
  --neon-business:   #ff0055;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg-primary:    #070b14;
  --bg-secondary:  #0d1321;
  --bg-card:       rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(20, 31, 58, 0.92);
  --bg-glass:      rgba(255, 255, 255, 0.04);
  --bg-input:      rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card:   rgba(255, 255, 255, 0.10);
  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 16px 44px rgba(0, 0, 0, 0.6);
  --bg-badge-soon: rgba(255, 255, 255, 0.08);
  --text-badge-soon: #94a3b8;
  --bg-overlay:    rgba(0, 0, 0, 0.6);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary:    #f8fafc;
  --bg-secondary:  #f1f5f9;
  --bg-card:       rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass:      rgba(0, 0, 0, 0.03);
  --bg-input:      rgba(0, 0, 0, 0.04);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card:   rgba(0, 0, 0, 0.08);
  --text-primary:  #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.10);
  --bg-badge-soon: rgba(0, 0, 0, 0.06);
  --text-badge-soon: #64748b;
  --bg-overlay:    rgba(0, 0, 0, 0.3);
}
