/* ═══════════════════════════════════════════════════════
   ValueArena — Scientific Observatory Aesthetic
   DM Serif Display + DM Sans | Deep navy + warm amber
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0c1021;
  --bg-elevated: #111628;
  --bg-surface: #161c32;
  --bg-hover: #1a2240;
  --text: #e8eaf0;
  --text-secondary: #a0a8c0;
  --text-muted: #636d88;
  --border: #222a42;
  --border-light: #1a2038;
  --accent: #e8a44a;
  --accent-glow: rgba(232, 164, 74, 0.15);
  --accent-hover: #f0b860;
  --accent-dim: rgba(232, 164, 74, 0.08);
  --tag-lora: #5b9cf6;
  --tag-api: #a78bfa;
  --tag-base: #64748b;
  --red: #f87171;
  --green: #4ade80;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Fira Code", monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --bg: #f5f2ed;
  --bg-elevated: #ffffff;
  --bg-surface: #faf8f5;
  --bg-hover: #f0ece5;
  --text: #1a1a2e;
  --text-secondary: #4a4a64;
  --text-muted: #8a8aa0;
  --border: #e0dcd4;
  --border-light: #ece8e0;
  --accent: #c47a20;
  --accent-glow: rgba(196, 122, 32, 0.1);
  --accent-hover: #a86815;
  --accent-dim: rgba(196, 122, 32, 0.05);
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}
