/* codzombies — simple, readable, no frills */

:root {
  --bg:          #16171c;
  --bg-raised:   #1d1f26;
  --border:      #2d2f38;

  --text:        #e8e9ed;
  --text-muted:  #9a9ca6;

  --accent:      #d6483f;
  --accent-hover:#e5665d;

  --font: Arial, Helvetica, system-ui, sans-serif;

  --radius: 6px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* page title block, shared across hub + guide pages */
.site-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.site-tagline {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* top-of-page dropdown nav bar: Main/Side Easter Eggs -> game -> map */
.site-navbar {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  padding: 0.6rem 0;
}

.site-brand:hover {
  color: var(--accent-hover);
}

.nav-top {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-item > a:hover { color: var(--accent); }

.nav-flyout {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  z-index: 10;
}

.nav-item:hover > .nav-flyout {
  display: block;
}

.nav-game {
  position: relative;
}

.nav-game > a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
}

.nav-game:hover > a {
  background: var(--bg);
  color: var(--text);
}

.nav-flyout-maps {
  top: 0;
  left: 100%;
}

.nav-game:hover > .nav-flyout-maps {
  display: block;
}

.nav-flyout-maps a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.nav-flyout-maps a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* map tags (players/difficulty/length/enjoyment) */
.map-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
}

.map-list-row .map-tags {
  margin-top: 0;
}

/* grouped-by-game directory */
.game-group {
  margin-bottom: 1.75rem;
}

.game-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.game-group-title a {
  color: var(--text);
  text-decoration: none;
}

.game-group-title a:hover {
  color: var(--accent);
}

.game-group .map-list { border-top: none; }

/* per-game map list (banner rows) */
.game-map-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.game-map-row {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-raised);
  background-size: cover;
  background-position: center;
  min-height: 92px;
  display: flex;
  align-items: stretch;
}

.game-map-row:hover {
  border-color: var(--accent);
}

.game-map-row-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-raised) 30%,
    rgba(29, 31, 38, 0.82) 60%,
    rgba(29, 31, 38, 0.25) 100%
  );
}

.game-map-row-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
}

.game-map-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.game-map-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.game-map-none {
  color: var(--text-muted);
}

/* section headings on the hub */
.section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 2.5rem 0 0.9rem;
}

.section-heading:first-of-type { margin-top: 0; }

/* featured map hero */
.featured-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  align-items: center;
}

.featured-card:hover { border-color: var(--accent); }

.map-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  overflow: hidden;
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.featured-card .map-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.featured-card .map-game {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* map card grid (popular + directory) */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.map-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.map-card:hover { border-color: var(--accent); }

.map-card .map-thumb {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.map-card .map-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.map-card .map-game {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

/* full directory as a plain list */
.map-list {
  border-top: 1px solid var(--border);
}

.map-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.map-list-row:hover .map-title { color: var(--accent); }

.map-list-row .map-game {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* guide page content */
.guide-meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.guide-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.guide-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.guide-content p {
  margin: 0.75rem 0;
}

.guide-content ul,
.guide-content ol {
  margin: 0.75rem 0 0.75rem 1.4rem;
}

.guide-content li {
  margin: 0.4rem 0;
}

.guide-content ol {
  counter-reset: step;
}

.guide-content ol > li {
  padding-left: 0.25rem;
}

.guide-content img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0.75rem 0;
  display: block;
}

.guide-content code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.guide-content strong { color: var(--text); }

.guide-loading,
.guide-error {
  color: var(--text-muted);
}
