/* ═══════════════════════════════════════════════════════════════
   🎨 COLOUR KNOBS & DESIGN TOKENS — ganesh-go (go.ganeshr.me)
   Directly matching design language & palette of ganeshr.me
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Primary Accent (Matching ganeshr.me) ── */
  --color-accent: #00D4AA;
  --color-accent-rgb: 0, 212, 170;

  /* ── Status Colors ── */
  --color-status-green: #10b981;
  --color-status-yellow: #f59e0b;
  --color-status-red: #ef4444;

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ── Border Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── Spotlight (Mouse-follow glow) ── */
  --spotlight-size: 800px;
  --spotlight-opacity: 0.06;
}

/* ═══════════════════════════════════════
   DARK THEME (Default)
   ═══════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg: #0a0a0f;
  --color-bg-rgb: 10, 10, 15;
  --color-bg-subtle: #111118;
  --color-bg-surface: #161622;
  --color-bg-card: rgba(255, 255, 255, 0.035);
  --color-bg-card-hover: rgba(255, 255, 255, 0.065);
  --color-bg-card-active: rgba(255, 255, 255, 0.09);
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.18);
  --color-border-accent: rgba(0, 212, 170, 0.35);

  --color-card-glow: rgba(0, 212, 170, 0.12);
  --color-kbd-bg: rgba(255, 255, 255, 0.08);
  --color-kbd-border: rgba(255, 255, 255, 0.15);
  --color-kbd-text: #cbd5e1;
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */
[data-theme="light"] {
  --color-bg: #FAFAF8;
  --color-bg-rgb: 250, 250, 248;
  --color-bg-subtle: #F0F0EE;
  --color-bg-surface: #E8E8E4;
  --color-bg-card: rgba(0, 0, 0, 0.03);
  --color-bg-card-hover: rgba(0, 0, 0, 0.055);
  --color-bg-card-active: rgba(0, 0, 0, 0.08);

  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #526071;
  --color-text-subtle: #64748b;

  --color-border: rgba(0, 0, 0, 0.10);
  --color-border-hover: rgba(0, 0, 0, 0.20);
  --color-border-accent: rgba(2, 128, 102, 0.40);

  /* Accessible teal accent for light-mode */
  --color-accent: #028066;
  --color-accent-rgb: 2, 128, 102;
  --color-card-glow: rgba(2, 128, 102, 0.12);

  --color-kbd-bg: rgba(0, 0, 0, 0.06);
  --color-kbd-border: rgba(0, 0, 0, 0.14);
  --color-kbd-text: #334155;

  --spotlight-opacity: 0.04;
}
