/* ==========================================================================
   CivicAI Design Tokens & System Variables
   A modern, trustworthy Indian civic-tech design system
   ========================================================================== */

:root {
  /* Brand Palette - Deep Navy, Trust Civic Blue, and subtle Tri-color accents */
  --color-primary-950: #090d16;
  --color-primary-900: #0f172a;
  --color-primary-800: #1e293b;
  --color-primary-700: #334155;
  --color-primary-600: #475569;

  --color-brand-blue: #1d4ed8;
  --color-brand-blue-hover: #1e40af;
  --color-brand-blue-light: #eff6ff;
  --color-brand-blue-border: #bfdbfe;

  --color-saffron-500: #f59e0b;
  --color-saffron-600: #d97706;
  --color-saffron-50: #fffbeb;
  --color-saffron-border: #fde68a;

  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-50: #ecfdf5;
  --color-emerald-border: #a7f3d0;

  --color-sky-500: #0ea5e9;
  --color-sky-50: #f0f9ff;

  --color-purple-600: #7c3aed;
  --color-purple-50: #faf5ff;
  --color-purple-border: #e9d5ff;

  --color-rose-600: #e11d48;
  --color-rose-50: #fff1f2;
  --color-rose-border: #fecdd3;

  /* Neutral Surface & Background Colors */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-dark-surface: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;
  --text-inverse-muted: #cbd5e1;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Weights */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.18);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Containers */
  --container-max: 1240px;
  --container-narrow: 840px;
  --header-height: 72px;
}
/* =========================================================
   CIVICAI — PROFESSIONAL DARK THEME
   ========================================================= */

[data-theme="dark"] {

  /* ---------- Main surfaces ---------- */

  --bg-body: #0b1120;
  --bg-surface: #111827;
  --bg-surface-subtle: #172033;
  --bg-surface-elevated: #1a2436;
  --bg-dark-surface: #070b14;
  --bg-glass: rgba(11, 17, 32, 0.92);

  /* ---------- Typography ---------- */

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;
  --text-inverse-muted: #475569;

  /* ---------- Borders ---------- */

  --border-subtle: #263449;
  --border-medium: #3a4a63;
  --border-focus: #60a5fa;

  /* ---------- Brand surfaces ---------- */

  --color-brand-blue-light: #172554;
  --color-brand-blue-border: #1d4ed8;

  --color-saffron-50: #3a2608;
  --color-saffron-border: #8a5a08;

  --color-emerald-50: #062e20;
  --color-emerald-border: #047857;

  --color-sky-50: #082f49;

  --color-purple-50: #251044;
  --color-purple-border: #7c3aed;

  --color-rose-50: #3b0a1c;
  --color-rose-border: #be123c;
}


/* =========================================================
   GLOBAL SURFACE OVERRIDES
   ========================================================= */

[data-theme="dark"] body {
  background: #0b1120 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] main,
[data-theme="dark"] section {
  color: #f8fafc;
}

[data-theme="dark"] .section-subtle {
  background: #0e1626 !important;
}


/* =========================================================
   CARDS & PANELS
   ========================================================= */

[data-theme="dark"] .scheme-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .trust-card-main,
[data-theme="dark"] .eligibility-card,
[data-theme="dark"] .search-input-card {
  background: #111827 !important;
  border-color: #263449 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .scheme-card:hover,
[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .step-card:hover {
  background: #162033 !important;
  border-color: #3a4a63 !important;
}


/* =========================================================
   TEXT
   ========================================================= */

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-title,
[data-theme="dark"] .scheme-card-title,
[data-theme="dark"] .category-title,
[data-theme="dark"] .step-title,
[data-theme="dark"] .trust-heading {
  color: #f8fafc !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .scheme-card-tagline,
[data-theme="dark"] .category-description,
[data-theme="dark"] .step-description,
[data-theme="dark"] .pillar-desc {
  color: #cbd5e1 !important;
}


/* =========================================================
   INPUTS / FORMS
   ========================================================= */

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}


/* =========================================================
   SEARCH / BENEFIT AREAS
   ========================================================= */

[data-theme="dark"] .scheme-benefit-box,
[data-theme="dark"] .scheme-eligibility-summary,
[data-theme="dark"] .docs-count-pill {
  background: #172033 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .scheme-benefit-text,
[data-theme="dark"] .eligibility-item {
  color: #cbd5e1 !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

[data-theme="dark"] .site-header {
  background: rgba(9, 13, 22, 0.94) !important;
  border-bottom-color: #263449 !important;
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #ffffff !important;
}

[data-theme="dark"] .brand-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .brand-tagline {
  color: #94a3b8 !important;
}


/* =========================================================
   LANGUAGE + THEME CONTROLS
   ========================================================= */

[data-theme="dark"] .language-selector,
[data-theme="dark"] .theme-toggle {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .lang-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .lang-btn.active {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

[data-theme="dark"] .theme-toggle:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}


/* =========================================================
   FILTERS
   ========================================================= */

[data-theme="dark"] .filter-pill,
[data-theme="dark"] .dataset-filter-switch {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .filter-pill:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

[data-theme="dark"] .filter-pill.active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}


/* =========================================================
   TRUST / DISCLAIMER
   ========================================================= */

[data-theme="dark"] .trust-section {
  background: #0b1120 !important;
}

[data-theme="dark"] .official-verification-callout {
  background: #172033 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .gov-domain-badge {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}


/* =========================================================
   MODAL
   ========================================================= */

[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .modal-card {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .modal-title {
  color: #f8fafc !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

[data-theme="dark"] .site-footer {
  background: #070b14 !important;
  border-top-color: #1e293b !important;
}

[data-theme="dark"] .footer-about-text,
[data-theme="dark"] .footer-link {
  color: #94a3b8 !important;
}

[data-theme="dark"] .footer-link:hover {
  color: #ffffff !important;
}
