/* theme.css — InspectAI global theme (light default + dark toggle) */

/* ===== Light Theme (default) ===== */
:root {
  --bg: #f9fafb;
  --bg2: #f0f2f5;
  --surface: #ffffff;
  --border: #e0e4ea;
  --accent: #2563eb;
  --accent2: #059669;
  --warn: #ea580c;
  --text: #334155;
  --muted: #94a3b8;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --grid-color: rgba(37, 99, 235, 0.03);
  --nav-bg: rgba(249, 250, 251, 0.92);
  --card-shadow: 0 2px 16px rgba(0,0,0,0.05);
  --card-hover-shadow: 0 12px 40px rgba(0,0,0,0.08);
  --featured-bg: linear-gradient(160deg, rgba(37,99,235,0.05) 0%, rgba(5,150,105,0.03) 100%);
  --featured-glow: 0 0 40px rgba(37,99,235,0.06);
  --badge-text: #ffffff;
  --modal-bg: #ffffff;
  --toast-bg: #1e293b;
  --toast-text: #f1f5f9;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg: #080c10;
  --bg2: #0d1117;
  --surface: #111820;
  --border: #1e2d3d;
  --accent: #00d4ff;
  --accent2: #00ff9d;
  --warn: #ff6b35;
  --text: #e2e8f0;
  --muted: #64748b;
  --grid-color: rgba(0, 212, 255, 0.03);
  --nav-bg: rgba(8, 12, 16, 0.85);
  --card-shadow: 0 2px 16px rgba(0,0,0,0.2);
  --card-hover-shadow: 0 16px 48px rgba(0,0,0,0.3);
  --featured-bg: linear-gradient(160deg, rgba(0,212,255,0.08) 0%, rgba(0,255,157,0.04) 100%);
  --featured-glow: 0 0 40px rgba(0,212,255,0.1);
  --badge-text: #080c10;
  --modal-bg: #1a1a2e;
  --toast-bg: #111820;
  --toast-text: #e2e8f0;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Icons: show/hide based on theme */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
