/* =========================================================================
   GSC Optimizer — Hub/Findable light theme (shared tokens)
   Single source of visual truth for all web templates.
   Canonical values match solvit-hub/backend/templates/base.html and
   findable/apps/web/src/design-tokens.css (purple primary #7c3aed, LIGHT).
   color-scheme:light forces native controls light even in OS dark mode.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Page / surface */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f8f9fa;

  /* Borders */
  --border: #dee2e6;
  --border-strong: #ced4da;

  /* Text */
  --text: #212529;
  --muted: #6c757d;
  --text-subtle: #adb5bd;

  /* Accent — Hub purple */
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.08);
  --accent-gradient: linear-gradient(135deg, #7c3aed, #6d28d9);
  --accent-glow: 0 4px 20px rgba(124, 58, 237, 0.25);

  /* Status */
  --green: #146c43;
  --amber: #b45309;
  --red: #b02a37;
  --cyan: #0891b2;

  /* Legacy aliases kept for template compatibility */
  --blue: #7c3aed;

  /* Geometry / depth */
  --radius: 14px;
  --radius-btn: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
}

input, select, textarea, button { font-family: inherit; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* Primary buttons — Hub purple gradient */
.btn-primary,
button.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover,
button.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
  background: var(--accent-gradient);
}

/* Focus ring — purple */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
}