/* ═══════════════════════════════════════════════════════
   NQ'S ARCADE — Global styles
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg:         #0a0a1a;
  --bg-card:    rgba(16, 16, 40, 0.85);
  --accent:     #f5c518;
  --accent-2:   #00ccee;
  --text:       #e8e8f0;
  --text-dim:   #888899;
  --border:     rgba(255,255,255,0.08);
  --radius:     12px;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle star field */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,204,238,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,197,24,0.04) 0%, transparent 50%);
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,20,0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.site-logo__nq     { color: var(--accent); }
.site-logo__arcade { color: var(--accent-2); }

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  font-size: 0.5rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }
.nav__back {
  color: var(--accent-2) !important;
  font-size: 0.5rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 700px;
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero__title span:first-child { color: var(--accent); }
.hero__title span:last-child  { color: var(--accent-2); }
.hero__sub {
  font-size: 0.5rem;
  color: var(--text-dim);
  line-height: 2;
}

/* ── Games section ── */
.games-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.games-section__title {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Game card ── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(245,197,24,0.15);
}
.game-card[data-status="coming-soon"] {
  pointer-events: none;
  opacity: 0.45;
}
.game-card[data-status="coming-soon"]::after {
  content: 'COMING SOON';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--text-dim);
  background: rgba(5,5,20,0.55);
  letter-spacing: 0.1em;
}

.game-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.game-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #05050f;
}
.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.game-card:hover .game-card__thumb img { transform: scale(1.04); }

.game-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #050510 0%, #0d1030 100%);
}

.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #000;
  font-size: 0.4rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.game-card__info {
  padding: 16px 16px 8px;
  flex: 1;
}
.game-card__title {
  font-size: 0.65rem;
  margin-bottom: 10px;
  color: var(--text);
}
.game-card__desc {
  font-size: 0.4rem;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 10px;
}
.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.game-card__tag {
  font-size: 0.35rem;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.75;
}

.game-card__cta {
  padding: 12px 16px 16px;
}

/* ── Buttons ── */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  letter-spacing: 0.05em;
  width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn--play {
  background: var(--accent);
  color: #000;
}
.btn--play:hover { filter: brightness(1.15); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.site-footer p {
  font-size: 0.4rem;
  color: var(--text-dim);
}

/* ── Game wrapper (used on game pages) ── */
.game-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 16px;
}
