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

:root {
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-secondary: #3b82f6;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;

  --color-bg: #f8fafc;
  --color-bg-subtle: #eef2f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-text-faint: #64748b;
  --color-on-primary: #ffffff;

  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --container-max: 1280px;
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;

  --z-nav: 40;
  --z-dropdown: 50;
  --z-modal: 70;
  --z-toast: 80;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --color-primary: #60a5fa;
  --color-primary-hover: #93c5fd;
  --color-secondary: #38bdf8;
  --color-accent: #fb923c;
  --color-accent-hover: #fdba74;

  --color-bg: #0b1220;
  --color-bg-subtle: #0f172a;
  --color-surface: #131b2e;
  --color-surface-hover: #1a2438;
  --color-border: #24304a;
  --color-border-strong: #34405c;

  --color-text: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-text-faint: #94a3b8;
  --color-on-primary: #0b1220;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 3px rgba(96, 165, 250, 0.45);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-primary: #60a5fa;
    --color-primary-hover: #93c5fd;
    --color-secondary: #38bdf8;
    --color-accent: #fb923c;
    --color-accent-hover: #fdba74;

    --color-bg: #0b1220;
    --color-bg-subtle: #0f172a;
    --color-surface: #131b2e;
    --color-surface-hover: #1a2438;
    --color-border: #24304a;
    --color-border-strong: #34405c;

    --color-text: #f1f5f9;
    --color-text-muted: #cbd5e1;
    --color-text-faint: #94a3b8;
    --color-on-primary: #0b1220;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-focus: 0 0 0 3px rgba(96, 165, 250, 0.45);

    color-scheme: dark;
  }
}
