/* RoamEscape website - shared styles for game cards and store buttons.
   Used by index.html, games.html and game.html (which define the colour variables). */

/* ── GAME GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.games-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── GAME CARD ── */
.game-card {
  background: var(--navy2);
  border: 1px solid var(--navy3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.35);
}

.game-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.card-image-wrap { position: relative; }

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--navy3);
}

.card-image-empty { background: linear-gradient(135deg, #14192c 0%, #0a0e1c 100%); }

.badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
}

.card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-teaser {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fact {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--navy);
  border: 1px solid var(--navy3);
  border-radius: 100px;
  padding: 4px 12px;
}

.card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--navy3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.price-was {
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ── STORE BUTTONS ── */
/* Official Apple / Google badges. Don't recolour, crop or fade them (both brands' rules). */
.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s;
}

.store-btn[href]:hover { transform: translateY(-2px); }

.store-badge { display: block; width: auto; }

.store-badge-ios { height: 40px; }

/* Google's PNG has built-in transparent padding, so it's taller and pulled in
   to make the visible badge line up with Apple's. */
.store-badge-android { height: 60px; margin: -10px 0; }

.store-btn-soon-tag {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.store-btn.store-btn-soon { cursor: default; }

.store-btn.store-btn-soon .store-btn-soon-tag { display: block; }

@media (max-width: 680px) {
  .games-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card, .store-btn { transition: none; }
}
