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

:root {
  --bg: #0c0e14;
  --bg-nav: #0f1119;
  --surface: #141620;
  --surface2: #1a1d2b;
  --surface3: #212536;
  --surface-card: #161825;
  --border: #232738;
  --border-hover: #363b52;
  --text: #e4e5eb;
  --text-dim: #8b8fa3;
  --text-muted: #4e5266;
  --accent: #7c6af6;
  --accent-dim: rgba(124, 106, 246, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.12);
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-hover); background: var(--surface2); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { opacity: 0.9; background: var(--accent); }
.btn-danger { color: var(--red); border-color: transparent; }
.btn-danger:hover { background: var(--red-dim); }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.btn-ghost { border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }

/* ===== FORM ELEMENTS ===== */
input, select, textarea {
  width: 100%;
  padding: 9px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 60px; }
select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='%234e5266'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select option { background: var(--surface); }
label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-dim); margin-bottom: 5px; }

/* ===== CARDS ===== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

/* ===== GRID ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-ud { background: var(--green-dim); color: var(--green); }
.badge-det { background: var(--red-dim); color: var(--red); }
.badge-risk { background: var(--yellow-dim); color: var(--yellow); }
.badge-unk { background: var(--surface3); color: var(--text-muted); }
.badge-draft { background: var(--surface3); color: var(--text-muted); }
.badge-progress { background: var(--yellow-dim); color: var(--yellow); }
.badge-published { background: var(--green-dim); color: var(--green); }

/* Game tags */
.game-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}
.game-tag[data-game="Fortnite"] { background: rgba(59,130,246,0.15); color: #60a5fa; }
.game-tag[data-game="Rust"] { background: rgba(234,88,12,0.15); color: #fb923c; }
.game-tag[data-game="CS2"] { background: rgba(234,179,8,0.15); color: #facc15; }
.game-tag[data-game="Valorant"] { background: rgba(239,68,68,0.15); color: #f87171; }
.game-tag[data-game="Apex Legends"] { background: rgba(220,38,38,0.15); color: #ef4444; }
.game-tag[data-game="Rainbow Six Siege"] { background: rgba(168,85,247,0.15); color: #c084fc; }
.game-tag[data-game="Minecraft"] { background: rgba(34,197,94,0.15); color: #4ade80; }
.game-tag[data-game="Other"] { background: var(--surface3); color: var(--text-dim); }

/* Detection dot */
.det-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.det-dot.ud { background: var(--green); box-shadow: 0 0 6px var(--green); }
.det-dot.det { background: var(--red); box-shadow: 0 0 6px var(--red); }
.det-dot.risk { background: var(--yellow); }
.det-dot.unk { background: var(--text-muted); }

/* ===== PUBLIC TAG ===== */
.pub-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--cyan-dim);
  color: var(--cyan);
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

/* ===== SCORE COLORS ===== */
.score-great { color: var(--green); }
.score-good { color: var(--cyan); }
.score-mid { color: var(--yellow); }
.score-low { color: var(--orange); }
.score-bad { color: var(--red); }

/* ===== MONO ===== */
.mono { font-family: 'JetBrains Mono', monospace; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0 14px; }
  .container { padding: 16px 12px; }
}
