/* LeonidaVault v3.1 — Fast, Mobile-First, Ad-Ready Interactive GTA 6 Companion Design System */
:root {
  --bg: #07060f;
  --surface: #100d20;
  --surface-2: #17132e;
  --border: rgba(255, 255, 255, 0.11);
  --pink: #ff2a85;
  --cyan: #00f0ff;
  --gold: #ffb800;
  --green: #10e89a;
  --red: #ff4757;
  --purple: #a770ff;
  --text: #f5f4fb;
  --muted: #a49fc0;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 42, 133, 0.14), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(0, 240, 255, 0.11), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Sticky Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 15, 0.88);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none !important;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), #7b2cff);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 900;
  font-size: 0.92rem;
}
.brand span { color: var(--pink); }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.15s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a.active {
  color: #fff;
  background: rgba(255, 42, 133, 0.18);
  border-color: rgba(255, 42, 133, 0.45);
}
.nav a.nav--yt {
  background: rgba(255, 42, 133, 0.92);
  color: #fff;
}
.nav a.nav--yt:hover { background: #ff4796; }

/* Containers & Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 18px 64px; }
.hero {
  background: linear-gradient(160deg, rgba(22, 16, 46, 0.96), rgba(11, 9, 24, 0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--green));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 232, 154, 0.14);
  color: var(--green);
  border: 1px solid rgba(16, 232, 154, 0.35);
  margin-bottom: 14px;
}
.eyebrow--warn {
  background: rgba(255, 71, 87, 0.15);
  color: #ff7a86;
  border-color: rgba(255, 71, 87, 0.4);
}
h1 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
h1 .accent { color: var(--cyan); }
h1 .accent-pink { color: var(--pink); }
.lead { color: var(--muted); font-size: 1.03rem; max-width: 780px; margin-bottom: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: 0.16s ease;
}
.btn--primary {
  background: linear-gradient(90deg, var(--pink), #ff5c5c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--cyan {
  background: rgba(0, 240, 255, 0.14);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.42);
}
.btn--cyan:hover { background: rgba(0, 240, 255, 0.22); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(255, 255, 255, 0.09); }
.btn--green {
  background: var(--green);
  color: #041d12;
}
.btn--green:hover { filter: brightness(1.08); }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin-bottom: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; margin-bottom: 26px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card--link { text-decoration: none !important; color: inherit; transition: 0.16s ease; }
.card--link:hover { border-color: var(--cyan); transform: translateY(-2px); background: var(--surface-2); }
.card h2 { font-size: 1.18rem; font-weight: 800; color: #fff; }
.card h3 { font-size: 1.02rem; font-weight: 800; color: #fff; }
.card p { color: var(--muted); font-size: 0.92rem; }
.pill {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}
.pill--green { background: rgba(16, 232, 154, 0.16); color: var(--green); }
.pill--pink { background: rgba(255, 42, 133, 0.18); color: #ff6ba9; }
.pill--cyan { background: rgba(0, 240, 255, 0.15); color: var(--cyan); }
.pill--gold { background: rgba(255, 184, 0, 0.16); color: var(--gold); }
.pill--red { background: rgba(255, 71, 87, 0.18); color: #ff7a86; }

.section-title {
  font-size: 1.32rem;
  font-weight: 900;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.callout {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.42);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.callout--green {
  background: rgba(16, 232, 154, 0.09);
  border-color: rgba(16, 232, 154, 0.36);
  border-left-color: var(--green);
}
.callout strong { color: #fff; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 22px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0, 240, 255, 0.04); }

/* Controls & Filter Chips */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.input {
  flex: 1 1 260px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
}
.input:focus { border-color: var(--cyan); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.chip.active { background: rgba(255, 42, 133, 0.22); border-color: var(--pink); color: #fff; }

/* Optional Offline Bundle / Affiliate Box */
.bundle-box {
  background: linear-gradient(135deg, rgba(16, 232, 154, 0.09), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(16, 232, 154, 0.35);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.gear-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gear-card__meta { font-size: 0.74rem; color: var(--gold); font-weight: 800; text-transform: uppercase; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 24px 18px 40px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }

/* Print Friendly */
@media print {
  .topbar, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .table-wrap, .callout { background: #fff; color: #111; border: 1px solid #ccc; }
  .card p, td { color: #222; }
}
