/* ==========================================================================
   DESIGN TOKENS & DUAL-THEME SYSTEM (BRIGHT & DARK)
   Oshan Nethsara Subhasinghe — Personal Portfolio (oshan.me)
   Default: Bright / Light Theme
   Typography: Poppins
   ========================================================================== */

/* --------------------------------------------------------------------------
   Default Bright / Light Theme
   -------------------------------------------------------------------------- */
:root {
  --theme-name: "light";

  /* Canvas & Backgrounds — Warm Premium Off-White (NOT stark white) */
  --bg: #f5f3ee;
  --bg-subtle: #f0ede7;
  --bg-pattern: transparent;
  --surface: #f9f8f5;
  --surface-raised: #eceae4;
  --surface-card: #faf9f6;
  --surface-hover: #e8e5de;
  --surface-glass: rgba(245, 243, 238, 0.92);

  /* Borders & Lines */
  --line: rgba(30, 22, 10, 0.10);
  --line-subtle: rgba(30, 22, 10, 0.05);
  --line-light: rgba(30, 22, 10, 0.14);
  --line-strong: rgba(30, 22, 10, 0.24);

  /* Typography */
  --text-primary: #100f0a;
  --text-secondary: #4a4640;
  --text-muted: #8a8278;
  --text-inverse: #f5f3ee;

  /* Brand & Accents */
  --accent: #100f0a;
  --accent-inverse: #f5f3ee;
  --accent-blue: #2563eb;
  --accent-blue-dim: rgba(37, 99, 235, 0.08);
  --accent-amber: #c96b1a;
  --accent-amber-bright: #e88a2a;
  --accent-amber-dim: rgba(201, 107, 26, 0.09);
  --accent-amber-glow: rgba(232, 138, 42, 0.18);
  --accent-emerald: #0a7a52;
  --accent-emerald-dim: rgba(10, 122, 82, 0.1);

  /* Typography Fonts */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;

  /* Layout & Sizing */
  --header-h: 76px;
  --content-max: 1180px;
  --content-narrow: 840px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 14, 4, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 14, 4, 0.07);
  --shadow-md: 0 10px 30px -4px rgba(20, 14, 4, 0.09);
  --shadow-lg: 0 24px 48px -8px rgba(20, 14, 4, 0.12);
  --shadow-card: 0 2px 6px rgba(20, 14, 4, 0.04), 0 16px 36px -8px rgba(20, 14, 4, 0.08);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.25s cubic-bezier(0.2, 0, 0, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --theme-name: "dark";

  /* Canvas & Backgrounds */
  --bg: #090a0f;
  --bg-subtle: #0f121a;
  --bg-pattern: rgba(255, 255, 255, 0.02);
  --surface: #131722;
  --surface-raised: #181d2a;
  --surface-card: #141824;
  --surface-hover: #1e2434;
  --surface-glass: rgba(15, 18, 27, 0.82);

  /* Borders & Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.04);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090a0f;

  /* Brand & Accents */
  --accent: #f8fafc;
  --accent-inverse: #090a0f;
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.14);
  --accent-amber: #f59e0b;
  --accent-amber-bright: #fbbf24;
  --accent-amber-dim: rgba(245, 158, 11, 0.14);
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.14);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
