/* ═══════════════════════════════════════════
   LOCAL SEO TOOL — Design System Tokens
   ═══════════════════════════════════════════ */

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

:root {
  /* ─── Colors: Dark Theme (Default) ─── */
  --bg-primary: #0b0d13;
  --bg-secondary: #111420;
  --bg-surface: #181c2a;
  --bg-surface-hover: #1f2438;
  --bg-elevated: #252a3e;
  --bg-input: #141722;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-color-focus: rgba(14, 165, 233, 0.5);

  --text-primary: #f0f4f8;
  --text-secondary: #8892a6;
  --text-muted: #555e72;
  --text-inverse: #0f172a;

  /* ─── Brand Colors ─── */
  --primary: #0ea5e9;
  --primary-hover: #38bdf8;
  --primary-dark: #0284c7;
  --primary-muted: rgba(14, 165, 233, 0.12);
  --primary-glow: rgba(14, 165, 233, 0.25);

  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-muted: rgba(139, 92, 246, 0.12);

  --cyan: #06b6d4;
  --cyan-muted: rgba(6, 182, 212, 0.12);

  /* ─── Semantic Colors ─── */
  --success: #22c55e;
  --success-hover: #4ade80;
  --success-muted: rgba(34, 197, 94, 0.12);
  --success-bg: rgba(34, 197, 94, 0.08);

  --warning: #f59e0b;
  --warning-hover: #fbbf24;
  --warning-muted: rgba(245, 158, 11, 0.12);
  --warning-bg: rgba(245, 158, 11, 0.08);

  --error: #ef4444;
  --error-hover: #f87171;
  --error-muted: rgba(239, 68, 68, 0.12);
  --error-bg: rgba(239, 68, 68, 0.08);

  --info: #3b82f6;
  --info-muted: rgba(59, 130, 246, 0.12);

  /* ─── Gradients ─── */
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-success: linear-gradient(135deg, #22c55e, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-surface: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-secondary) 100%);
  --gradient-glow: radial-gradient(600px at 50% 0%, rgba(14, 165, 233, 0.08), transparent);

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

  --fs-2xs: 0.6875rem;    /* 11px */
  --fs-xs: 0.75rem;       /* 12px */
  --fs-sm: 0.8125rem;     /* 13px */
  --fs-base: 0.9375rem;   /* 15px */
  --fs-md: 1rem;          /* 16px */
  --fs-lg: 1.125rem;      /* 18px */
  --fs-xl: 1.25rem;       /* 20px */
  --fs-2xl: 1.5rem;       /* 24px */
  --fs-3xl: 1.875rem;     /* 30px */
  --fs-4xl: 2.25rem;      /* 36px */
  --fs-5xl: 3rem;         /* 48px */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight: -0.025em;
  --ls-normal: 0;
  --ls-wide: 0.025em;
  --ls-wider: 0.05em;
  --ls-widest: 0.1em;

  /* ─── Spacing (4px base) ─── */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-2-5: 0.625rem;
  --space-3: 0.75rem;
  --space-3-5: 0.875rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ─── Border Radius ─── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ─── Shadows ─── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-glow-sm: 0 0 10px var(--primary-glow);
  --shadow-glow: 0 0 24px var(--primary-glow);
  --shadow-glow-lg: 0 0 48px var(--primary-glow);

  /* ─── Layout ─── */
  --sidebar-width: 260px;
  --sidebar-collapsed: 68px;
  --topbar-height: 60px;
  --content-max-width: 1200px;

  /* ─── Transitions ─── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* ─── Glass Effects ─── */
  --glass-bg: rgba(24, 28, 42, 0.65);
  --glass-bg-heavy: rgba(24, 28, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(24px);
  --glass-blur-light: blur(12px);

  /* ─── Z-Index Scale ─── */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-sidebar: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;

  /* ─── Score Ring ─── */
  --ring-size: 140px;
  --ring-stroke: 10;
  --ring-radius: 60;
  --ring-circumference: 376.99;
}

/* ═══════════════════════════════════════════
   Light Theme Overrides
   ═══════════════════════════════════════════ */
[data-theme="light"] {
  --bg-primary: #f6f8fb;
  --bg-secondary: #eef1f6;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8f9fc;
  --bg-elevated: #ffffff;
  --bg-input: #f0f3f8;

  --border-color: rgba(0, 0, 0, 0.07);
  --border-color-hover: rgba(0, 0, 0, 0.14);
  --border-color-focus: rgba(14, 165, 233, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f0f4f8;

  --primary-muted: rgba(14, 165, 233, 0.1);
  --primary-glow: rgba(14, 165, 233, 0.15);
  --accent-muted: rgba(139, 92, 246, 0.1);
  --cyan-muted: rgba(6, 182, 212, 0.1);
  --success-muted: rgba(34, 197, 94, 0.1);
  --success-bg: rgba(34, 197, 94, 0.06);
  --warning-muted: rgba(245, 158, 11, 0.1);
  --warning-bg: rgba(245, 158, 11, 0.06);
  --error-muted: rgba(239, 68, 68, 0.1);
  --error-bg: rgba(239, 68, 68, 0.06);
  --info-muted: rgba(59, 130, 246, 0.1);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-glow-sm: 0 0 10px rgba(14, 165, 233, 0.1);
  --shadow-glow: 0 0 24px rgba(14, 165, 233, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-heavy: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);

  --gradient-surface: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-secondary) 100%);
  --gradient-glow: radial-gradient(600px at 50% 0%, rgba(14, 165, 233, 0.05), transparent);
}
