/* Aberration — shared stylesheet (dark horror theme, no frameworks) */

:root {
  --bg: #0b0d10;
  --bg-panel: #14171c;
  --bg-panel-2: #1a1e24;
  --border: #262c34;
  --text: #d7dbe0;
  --text-dim: #8b929c;
  --accent: #c0392b;      /* blood red */
  --accent-hover: #e74c3c;
  --amber: #e0a020;       /* infected amber eyes */
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header / nav ---------- */
header {
  background: rgba(11, 13, 16, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon { height: 30px; width: auto; }

/* Same wordmark as the hero (assets/AberrationTitle.png is black artwork on
   transparent), inverted to white. No red glow here — the header stays flat. */
.logo-wordmark { height: 24px; width: auto; filter: invert(1); }

@media (max-width: 480px) {
  .logo-wordmark { height: 19px; }
  .logo-icon { height: 24px; }
}

nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; color: var(--text); }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }
p  { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent-hover); }
code {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

.dim { color: var(--text-dim); }

/* Small utility classes.
   These exist so no page needs inline style="..." attributes — that lets the
   site's Content-Security-Policy block inline styles and scripts outright. */
.mt-0     { margin-top: 0; }
.mt-sm    { margin-top: 1.2rem; }
.mt-md    { margin-top: 1.5rem; }
.mt-lg    { margin-top: 2.2rem; }
.mt-xl    { margin-top: 2.5rem; }
.mb-0     { margin-bottom: 0; }
.tight    { margin: 1rem 0 0; }
.flush    { margin: 0; }
.center   { text-align: center; }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Hero (index) ---------- */
/* Full-bleed section (lives outside <main>) with a looping video background */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay fading into the page background keeps the wordmark readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 13, 16, 0.85) 0%,
    rgba(11, 13, 16, 0.65) 55%,
    var(--bg) 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; }

/* Wordmark PNG is black-on-transparent; invert(1) renders it white on the dark theme */
.hero-wordmark {
  width: min(680px, 92%);
  height: auto;
  filter: invert(1) drop-shadow(0 0 25px rgba(192, 57, 43, 0.55));
}

.hero-motto {
  margin-top: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: clamp(0.85rem, 2.6vw, 1.15rem);
}

.hero .tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 1rem auto 2.2rem;
  max-width: 640px;
}

.btn-download {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.9rem 2.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-download:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* No jar to hand out yet — same shape as the download button, deliberately flat
   and grey so it doesn't read as clickable. */
.btn-download--soon {
  background: var(--bg-panel-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: default;
}

.btn-download--soon:hover { background: var(--bg-panel-2); transform: none; }

.version-line { margin-top: 1rem; color: var(--text-dim); font-size: 0.95rem; }

.hash-line {
  font-size: 0.75rem;
  margin-top: 0.6rem;
  line-height: 1.7;
}

.hash-line code {
  font-size: 0.95em;
  word-break: break-all;
}

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.card h3 { margin-top: 0; color: var(--amber); }
.card p  { margin-bottom: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Credits page ---------- */
.member {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.member .avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  image-rendering: pixelated;   /* keep Minecraft heads crisp */
  flex-shrink: 0;
}

.member h3 { margin: 0 0 0.35rem; }

.member .tags { margin-bottom: 0.4rem; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-hover);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  margin: 0 0.35rem 0.35rem 0;
}

.tag--muted { color: var(--text-dim); border-color: var(--border); }

/* Novelty tag — amber instead of the standard red */
.tag--alt { color: var(--amber); border-color: var(--amber); }

/* Name-only rosters (builders / past builders) */
.name-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.name-list li {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  margin: 0;
  font-size: 0.95rem;
}

.name-list--past li { color: var(--text-dim); background: transparent; }

.member p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* "In Development" tag on WIP feature cards */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Narrative gameplay sections on the home page */
.story h2 { color: var(--accent-hover); }
.story .kicker {
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.6rem;
}

/* Requirements table */
.req-table { width: 100%; border-collapse: collapse; }
.req-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.req-table td:first-child { color: var(--text-dim); white-space: nowrap; }
.req-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ (details/summary) ---------- */
details {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  list-style: none;
}

summary::before { content: "▸ "; color: var(--accent); }
details[open] summary::before { content: "▾ "; }
details > *:not(summary) { padding: 0 1.3rem; }
details > p:last-child, details > ul:last-child { padding-bottom: 1rem; }

/* ---------- Video embeds ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.video-slot {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.video-slot .frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel-2);
  color: var(--text-dim);
}

.video-slot iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-slot img { width: 100%; display: block; }
.video-slot .caption { padding: 0.7rem 1rem; font-size: 0.95rem; }

/* Single wide slot (homepage trailer/devlog) */
.video-slot--wide { max-width: 720px; margin: 0 auto; }

/* Larger badge used for the "In Active Development" status line */
.badge--lg {
  font-size: 0.85rem;
  padding: 0.25rem 0.8rem;
  margin-left: 0;
}

.dev-status { margin: 0.4rem 0 0.8rem; }

/* ---------- Floating social rail (right edge) ---------- */
.social-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.social-rail a {
  color: var(--text-dim);
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s, transform 0.15s;
  display: block;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  opacity: 1;
  color: var(--accent-hover);
  transform: scale(1.1);
}

.social-rail svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

/* Placeholder link (no URL yet) — stays dim and unclickable-looking */
.social-rail a[aria-disabled="true"] {
  opacity: 0.18;
  cursor: default;
}

.social-rail a[aria-disabled="true"]:hover {
  opacity: 0.18;
  color: var(--text-dim);
  transform: none;
}

@media (max-width: 1100px) {
  .social-rail { display: none; }
}

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

footer .links { margin-bottom: 0.6rem; }
footer .links a { margin: 0 0.8rem; color: var(--text); text-decoration: none; }
footer .links a:hover { color: var(--accent-hover); }
