/* ============================================================
   Zero Value Entertainment — Modern Design System
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0d17;
  --bg-soft: #141726;
  --bg-card: #1a1e30;
  --bg-elev: #23283f;
  --border: #2b3149;
  --text: #e6e8f0;
  --text-dim: #a5abd0;
  --muted: #73799b;
  --accent: #ff2e63;        /* brand red */
  --accent-2: #7b2cff;      /* violet */
  --accent-3: #17c3f2;      /* cyan */
  --green: #37d39b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1100px;
  --tap: 44px;              /* minimum touch target (mobile) */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(123, 44, 255, 0.22), transparent),
    radial-gradient(1000px 500px at 92% 8%, rgba(23, 195, 242, 0.18), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}
a:hover {
  color: var(--accent-3);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 13, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
.navbar .brand:hover { color: var(--text); text-decoration: none; transform: none; }
.navbar .brand img { height: 34px; width: auto; }

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.navbar.open .hamburger span:nth-child(1) { transform: translateY(2px) rotate(45deg); }
.navbar.open .hamburger span:nth-child(2) { opacity: 0; }
.navbar.open .hamburger span:nth-child(3) { transform: translateY(-2px) rotate(-45deg); }

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.navbar ul li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.navbar ul li a:hover {
  color: var(--text);
  background: var(--bg-elev);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 70px 24px 50px;
}
.hero img.logo,
.hero img.center { margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.hero p.tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Section ---------- */
section { padding: 46px 0; }
.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 8px;
  font-weight: 800;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 34px;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  text-decoration: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(255, 46, 99, 0.35);
}
.card:hover h3 {
  color: var(--green);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-dim); }
.card .link { color: var(--accent); font-weight: 700; }

/* ---------- Lists ---------- */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--border);
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.15);
}

/* ---------- Pill / chip list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; text-decoration: none; }

/* ---------- Form (Valheim map downloads) ---------- */
.download-box {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.download-box object,
.download-box .sha256 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 25px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: "Consolas", monospace;
  padding: 2px 8px;
  background: #0e1120;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.15;
  overflow: hidden;
  white-space: nowrap;
}
.download-box .btn { margin-top: 6px; }
.norseBold {
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
  display: block;
  margin: 4px 0;
}

/* ---------- Info / FAQ (dl) ---------- */
.dl { display: grid; gap: 20px; }
.dl dt {
  color: var(--accent-3);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
}
.dl dd {
  margin: 0 0 6px;
  color: var(--text-dim);
}

/* ---------- Steps / instructions ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  list-style: none;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

/* ---------- Code block ---------- */
.code {
  background: #0e1120;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: "Consolas", monospace;
  color: var(--green);
  overflow-x: auto;
  margin: 12px 0;
}

/* ---------- Feature table (bots) ---------- */
.feature-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin: 12px 0;
}
.feature-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
}
.feature-table th,
.feature-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.feature-table th {
  background: var(--bg-elev);
  color: var(--accent-3);
  font-weight: 700;
}
.feature-table tr:last-child th,
.feature-table tr:last-child td { border-bottom: none; }
.feature-table td { color: var(--text-dim); }

/* ---------- Breadcrumb ---------- */
.crumbs { margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Version badge ---------- */
.badge {
  display: inline-block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--accent-3);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: "Consolas", monospace;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Warning note ---------- */
.note {
  background: rgba(255, 46, 99, 0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  margin: 16px 0;
}

/* ---------- 404 page ---------- */
.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 {
  font-size: clamp(4rem, 18vw, 12rem);
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  line-height: 1;
}
.error-page p { color: var(--text-dim); max-width: 480px; margin: 0 auto 24px; }
.error-page .ghost { font-style: italic; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.center { display: block; margin-left: auto; margin-right: auto; }
hr.soft {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

/* ============================================================
   Responsive — mobile & small screens
   ============================================================ */
@media (max-width: 640px) {
  :root { --maxw: 100%; }

  /* Hamburger visible, links become a slide-down panel */
  .hamburger { display: flex; }
  .navbar { flex-wrap: wrap; justify-content: center; }
  .navbar:not(.open) ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 13, 23, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: none;
    z-index: 101;
  }
  .navbar.open ul { display: flex; }
  .navbar ul li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
  }
  .navbar .brand { font-size: 1.05rem; }

  .hero { padding: 48px 18px 34px; }
  .hero p.tagline { font-size: 1rem; }

  .container { padding: 0 18px; }

  section { padding: 36px 0; }

  /* Grid stacks to single column on narrow screens */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* dl stacks to single column */
  .dl {
    display: grid;
    gap: 18px;
  }

  /* List padding / bullet dot */
  ul.clean li {
    padding: 10px 0 10px 24px;
  }
  ul.clean li::before {
    left: 0;
    top: 17px;
    width: 8px; height: 8px;
  }

  /* Steps */
  .steps li { padding-left: 40px; }
  .steps li::before { width: 24px; height: 24px; }

  /* Download box */
  .download-box { padding: 18px; }

  /* Footer */
  footer { padding: 22px 0; }
}

/* ---------- Deprecated badge ---------- */
.deprecated {
  display: inline-block;
  background: rgba(255, 206, 0, 0.12);
  border: 1px solid #ffb300;
  color: #ffd24d;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: "Consolas", monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
