/* ==========================================================================
   Chợ Số Tây Bắc — Default Theme design tokens.
   This file defines ONLY custom properties on :root — no selectors that
   touch any existing element. Safe to load on every page with zero visual
   diff until later phases start consuming these variables.

   Theme-override convention: a festival theme (Chợ Phiên, Tết, …) is one
   file, wwwroot/css/themes/{key}.css, whose rules are all scoped under
   ":root[data-theme=\"{key}\"]" and override a subset of these variables
   plus the --theme-* ones listed in site.css ("Festival themes: shared
   rules"), which bridges Bootstrap to these tokens once for every theme. Register the key in Helpers/ThemeCatalog.cs; the layout
   then loads ONLY the active theme's file, and IThemeProvider (SiteThemeService,
   configured in Admin → Giao diện) decides which key is active. This file's
   bare :root block IS the "default" theme's values — it never needs its own
   [data-theme="default"] scope.

   Source of truth for color/radius/shadow values:
   docs/design-explorations/cho-so-tay-bac-default-theme/design-tokens.md
   docs/design-explorations/cho-so-tay-bac-default-theme/design-demos/approved-merged/assets/styles.css
   ========================================================================== */

:root {
  /* Brand + accent + status colors (chốt 2026-09-17) */
  --color-primary: #0b466b;
  --color-primary-hover: #07324d;
  --color-primary-light: #176b91;
  --color-accent: #e88932;
  --color-gold: #f2b84b;
  --color-background: #f8f7f3;
  --color-surface: #ffffff;
  --color-border: #dce3e7;
  --color-text-primary: #17232c;
  --color-text-secondary: #66737c;
  --color-success: #27845b;
  --color-warning: #d99a24;
  --color-danger: #c94a4a;
  --color-info: #287aa1;

  /* Radius scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadow scale (tinted with --color-text-primary's RGB, 23,35,44) */
  --shadow-sm: 0 1px 2px rgba(23, 35, 44, 0.05);
  --shadow-md: 0 4px 16px rgba(23, 35, 44, 0.08);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Transition durations */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}
