/* ============================================================
   Design Tokens — polymarket-watcher
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- 2.1  Dark mode (default) --- */

:root {
  /* Backgrounds */
  --bg-base: #07090E;
  --bg-surface: #0D1117;
  --bg-elevated: #131B24;
  --bg-glass: rgba(13, 17, 23, 0.72);
  --bg-input: #0A0F16;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(0, 200, 232, 0.35);

  /* Text */
  --text-primary: #E4EBF2;
  --text-secondary: #6B7A8D;
  --text-tertiary: #3A4A5A;
  --text-inverse: #07090E;

  /* Accent */
  --accent: #00C8E8;
  --accent-hover: #33D5EE;
  --accent-dim: rgba(0, 200, 232, 0.10);
  --accent-dim-hover: rgba(0, 200, 232, 0.18);
  --accent-glow: 0 0 24px rgba(0, 200, 232, 0.18);

  /* Semantic */
  --positive: #00D48A;
  --positive-dim: rgba(0, 212, 138, 0.10);
  --negative: #FF3D5C;
  --negative-dim: rgba(255, 61, 92, 0.10);
  --warning: #F0A030;
  --warning-dim: rgba(240, 160, 48, 0.10);
  --neutral: #4A5A6A;

  /* Sidebar */
  --sidebar-width-collapsed: 52px;
  --sidebar-width-expanded: 220px;
  --sidebar-bg: rgba(7, 9, 14, 0.88);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  /* --- 3  Typography --- */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  --text-xs: 0.694rem;
  --text-sm: 0.833rem;
  --text-base: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.44rem;
  --text-2xl: 1.728rem;
  --text-3xl: 2.074rem;

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-widest: 0.06em;

  /* --- 4  Spacing & Layout --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --row-height: 36px;
  --header-height: 48px;
  --tab-height: 40px;
}

/* --- 2.2  Light mode --- */

[data-theme="light"] {
  --bg-base: #EEF2F7;
  --bg-surface: #FFFFFF;
  --bg-elevated: #E5ECF4;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-input: #FFFFFF;

  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-accent: rgba(0, 140, 175, 0.4);

  --text-primary: #0A0E15;
  --text-secondary: #4A5A6B;
  --text-tertiary: #8A98A8;
  --text-inverse: #FFFFFF;

  --accent: #0098BA;
  --accent-hover: #007A98;
  --accent-dim: rgba(0, 152, 186, 0.10);
  --accent-dim-hover: rgba(0, 152, 186, 0.18);
  --accent-glow: 0 0 24px rgba(0, 152, 186, 0.14);

  --positive: #007A50;
  --positive-dim: rgba(0, 122, 80, 0.08);
  --negative: #D42040;
  --negative-dim: rgba(212, 32, 64, 0.08);
  --warning: #C07800;
  --warning-dim: rgba(192, 120, 0, 0.08);

  --sidebar-bg: rgba(238, 242, 247, 0.92);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
