/* ============================================================
   OneMekong Design Tokens — Mekong River Blue palette
   Inspired by deep-water cyan + electric brand gradient
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — clean editorial light */
  --color-bg: #f5f8fb;
  --color-surface: #ffffff;
  --color-surface-2: #f9fbfd;
  --color-surface-offset: #eef3f8;
  --color-divider: #dde6ef;
  --color-border: #cdd9e4;

  /* Text */
  --color-text: #0a1f33;
  --color-text-muted: #4a607a;
  --color-text-faint: #93a5b8;
  --color-text-inverse: #ffffff;

  /* Brand: deep Mekong navy + cyan electric accent */
  --color-navy-900: #02132e;
  --color-navy-800: #061d44;
  --color-navy-700: #0a2b62;
  --color-navy-600: #103a82;
  --color-navy-500: #1750a8;

  --color-cyan-400: #38c8ff;
  --color-cyan-500: #1aa9ec;
  --color-cyan-600: #0e85c1;

  --color-primary: #1163d8;
  --color-primary-hover: #0d4cab;
  --color-primary-active: #082f72;
  --color-accent: #38c8ff;

  /* Focus-area icon colors (match the reference) */
  --color-water: #2da6ff;
  --color-climate: #2bb673;
  --color-agri: #5ac96b;
  --color-mobility: #2bb673;
  --color-edu: #e85d4a;

  --color-success: #2bb673;
  --color-warning: #d97706;
  --color-error: #b91c1c;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(8, 21, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(8, 21, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 21, 40, 0.14);
  --shadow-glow: 0 0 30px rgba(56, 200, 255, 0.45);

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 6vw, 6.5rem);

  /* 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-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1240px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Brand gradient (matches OneMekong wordmark in reference) */
  --gradient-brand: linear-gradient(90deg, #ffffff 0%, #ffffff 38%, #38c8ff 60%, #1163d8 100%);
  --gradient-brand-text: linear-gradient(90deg, #38c8ff 0%, #1163d8 100%);
  --gradient-hero-overlay: linear-gradient(
    180deg,
    rgba(2, 19, 46, 0.92) 0%,
    rgba(2, 19, 46, 0.7) 40%,
    rgba(2, 19, 46, 0.55) 100%
  );
  --gradient-cta: linear-gradient(135deg, #1163d8 0%, #38c8ff 100%);
}

[data-theme='dark'] {
  --color-bg: #02101f;
  --color-surface: #061a2e;
  --color-surface-2: #0a223b;
  --color-surface-offset: #0d2a48;
  --color-divider: #14375d;
  --color-border: #1d4470;
  --color-text: #e6effa;
  --color-text-muted: #9bb0c8;
  --color-text-faint: #5a738f;
  --color-text-inverse: #02101f;
  --color-primary: #38c8ff;
  --color-primary-hover: #62d4ff;
  --color-primary-active: #1aa9ec;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}
