/* ==========================================================
   Neon Arcade — stylesheet
   Generated by Gaming Website Structure Builder (original design).
   Mobile-first, responsive, GitHub Pages compatible.
   You do NOT need to edit this file to add games.
   ========================================================== */

:root {
  --bg: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --primary: #00e5ff;
  --secondary: #ff3df2;
  --text: #e9eefc;
  --muted: rgba(232, 238, 252, 0.55);
  --radius: 14px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(0, 229, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 35% at 90% 110%, rgba(255, 45, 120, 0.06), transparent);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-mark { color: var(--primary); }

/* Header-embedded search (when placement = header) */
.header-search { flex: 1; display: flex; justify-content: center; }
.header-search input {
  width: min(340px, 100%);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.header-search input:focus { border-color: var(--primary); }

/* ---------- Navigation ---------- */
.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--primary); background: rgba(0, 229, 255, 0.08); }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1rem 2rem;
  text-align: center;
}
.hero-compact { padding-bottom: 1rem; }

.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline { margin-top: 0.5rem; color: var(--muted); font-size: 1.05rem; }

.hero-search { margin-top: 1.5rem; display: flex; justify-content: center; }
.hero-search input {
  width: min(480px, 100%);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

/* ---------- Content sections (rendered by script.js) ---------- */
.content { max-width: var(--max-width); margin: 0 auto; padding: 1rem 1rem 3rem; }

.section { margin-top: 2.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 0.6rem;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.section-count { color: var(--muted); font-size: 0.85rem; }

/* ---------- Category filter bar ---------- */
.category-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.category-pill {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.category-pill:hover { color: var(--text); }
.category-pill.active {
  color: var(--bg);
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Game grid + cards ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 229, 255, 0.12);
}

.game-card .card-media { position: relative; overflow: hidden; }
.game-card .card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s;
}
.game-card:hover .card-media img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--secondary);
  color: #fff;
}

.card-body { padding: 0.75rem 0.9rem 0.9rem; }
.card-title { font-size: 1rem; font-weight: 700; }
.card-category { margin-top: 0.2rem; font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* Empty state (no search results) */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.footer-col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  /* Nav collapses into a slide-down menu */
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .header-search { order: 3; flex-basis: 100%; }
  .hero { padding-top: 2rem; }
}

@media (max-width: 420px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}
