/* style.css — DREscout Design Tokens (KW Red Theme) */

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

:root {
  /* Font families */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* 4px Spacing System */
  --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;

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

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Sidebar width */
  --sidebar-width: 240px;
  --sidebar-collapsed: 56px;
}

/* =============================================================
   LIGHT MODE — KW Red theme matching drescout.io landing page
   ============================================================= */
:root, [data-theme="light"] {
  /* Sidebar (soft light gray so mascot reads well, KW red reserved for active item) */
  --color-sidebar: #F4F4F5;
  --color-sidebar-hover: #EAEAEC;
  --color-sidebar-active: #FEE8EB;           /* soft red highlight for selected nav item */
  --color-sidebar-text: #4D4D4D;
  --color-sidebar-text-active: #CE011F;      /* KW red text on light highlight */
  --color-sidebar-border: rgba(0, 0, 0, 0.06);

  /* Surfaces (clean white/gray matching landing page) */
  --color-bg:             #F7F7F8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #FAFAFA;
  --color-surface-offset: #F4F4F5;
  --color-surface-offset-2: #EDEDEE;
  --color-surface-dynamic: #E2E2E4;
  --color-divider:        #E5E5E5;
  --color-border:         #E5E5E5;

  /* Text */
  --color-text:           #1A1A1A;
  --color-text-muted:     #4D4D4D;
  --color-text-faint:     #828282;
  --color-text-inverse:   #FFFFFF;

  /* Primary Accent (KW red) */
  --color-primary:        #CE011F;
  --color-primary-hover:  #A60119;
  --color-primary-active: #7A0012;
  --color-primary-highlight: #FEE8EB;
  --color-primary-subtle: rgba(206, 1, 31, 0.08);

  /* Kept for any chart that needed teal before — now a muted slate */
  --color-accent:         #4D4D4D;

  /* Success */
  --color-success:        #15803d;
  --color-success-hover:  #0f6b30;
  --color-success-highlight: #dcfce7;

  /* Warning */
  --color-warning:        #b87514;
  --color-warning-hover:  #9a6010;
  --color-warning-highlight: #fef3e0;

  /* Error (same as KW red — used for destructive actions) */
  --color-error:          #CE011F;
  --color-error-hover:    #A60119;
  --color-error-highlight: #FEE8EB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, 0.12);

  /* Chart colors — softer, more editorial. Red as accent, not shout. */
  --chart-1: #CE011F;  /* KW red — primary data series */
  --chart-2: #4D4D4D;  /* medium gray — secondary series */
  --chart-3: #F37B8F;  /* light rose */
  --chart-4: #828282;  /* mid gray */
  --chart-5: #A60119;  /* dark red */
  --chart-6: #B8B8B8;  /* soft gray */
  --chart-7: #7A0012;  /* deep red */
  --chart-8: #CCCCCC;  /* light gray */
}

