/* Theme Design Tokens for mdslides Website
   Supports both Light and Dark modes with smooth transitions. */

:root {
  color-scheme: light dark;

  /* Typography */
  --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 4rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Default Theme: Dark (Matches developer presentation aesthetic) */
  --bg: #090a0f;
  --bg-stage: #050608;
  --bg-surface: #12141c;
  --bg-surface-elevated: #181b26;
  --bg-surface-glass: rgba(18, 20, 28, 0.82);
  --bg-code: #07080b;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(59, 130, 246, 0.35);

  --fg: #f8fafc;
  --fg-heading: #ffffff;
  --fg-muted: #94a3b8;
  --fg-subtle: #64748b;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.25);

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 24px 60px -12px rgba(59, 130, 246, 0.2), 0 0 0 1px var(--border-accent);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Light Theme: Clean, high-contrast, professional */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-stage: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-code: #0f172a;

  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-hover: #cbd5e1;
  --border-accent: rgba(37, 99, 235, 0.4);

  --fg: #0f172a;
  --fg-heading: #020617;
  --fg-muted: #475569;
  --fg-subtle: #94a3b8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.15);

  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.12), 0 0 0 1px var(--border-accent);
  --shadow-glass: 0 8px 30px rgba(15, 23, 42, 0.08);
}
