/* ===================================================
   Round Route – Game Page Styles
   Matches teampearson.us/projects/mrpearson/ aesthetic
   =================================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0e0e12;
  --color-surface: #1a1a24;
  --color-surface-hover: #24243a;
  --color-accent: #6c63ff;
  --color-accent-hover: #8a82ff;
  --color-text: #e4e4e8;
  --color-text-muted: #8a8a9a;
  --color-border: #2a2a3a;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Header ────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-text);
}

/* ── Hero / Store Header ───────────────────────── */
.game-hero {
  position: relative;
  width: 100%;
  background: var(--color-surface);
  overflow: hidden;
}

.game-hero-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero-placeholder {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

.game-hero-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* ── Store Info Bar ────────────────────────────── */
.store-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.game-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.game-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.game-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag.secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ── Action Buttons ────────────────────────────── */
.game-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
  color: #fff;
}

/* ── Main Content ──────────────────────────────── */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

/* ── Left Column – Media & Description ─────────── */
.media-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.screenshot-grid .screenshot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.screenshot-grid .screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.description {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.description p {
  margin-bottom: 1rem;
}

/* ── Right Column – Info Panel (Steam-style) ──── */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: var(--color-text-muted);
}

.info-row .value {
  color: var(--color-text);
  font-weight: 500;
}

/* ── Features List ─────────────────────────────── */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.features-list li::before {
  content: "•";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────── */
footer {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

/* ── Responsive ────────────────────────────────── */
@media (max-width: 860px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .store-bar {
    padding: 1rem 1.25rem;
  }

  .game-title {
    font-size: 1.35rem;
  }

  header {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .game-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}