/*!
 * GameGuide 002 — list style
 * ---------------------------------------------------------------------------
 * The base site (NorthFiveFun) shows games as a GRID of tall cards, each with
 * a 16:9 cover image and the app logo floating over it. This variant shows
 * the same games as a compact LIST OF ROWS: a small square app icon on the
 * left, the title and details in the middle, the score on the right.
 *
 * The markup is IDENTICAL to the base site - the same .card-grid /
 * .game-card / .game-card__* elements, rendered by the same three places
 * (build_site.py for the server-rendered pages, data.js for the client-side
 * grid, detail.js for the related-games list). Only the presentation
 * changes, so there is still exactly ONE source of truth for the markup.
 *
 * The colours come from the variant palette in variant.json; this file only
 * changes the SHAPE and the flow.
 */

/* ==========================================================================
   1. The list itself
   ========================================================================== */

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  overflow: visible;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.game-card:hover {
  border-left-color: var(--accent-strong);
  background: var(--card-2);
  transform: none;
}

/* Score chip: no longer floating over a cover, it sits on the right edge. */
.game-card::before {
  top: 12px;
  right: 12px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

/* The icon replaces the cover as the row thumbnail. */
.game-card__media {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.game-card__cover {
  display: none;
}

.game-card__media::after {
  display: none;
}

.game-card__logo {
  position: static;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.game-card__body {
  gap: 2px;
  padding: 0 52px 0 0;
}

.game-card__title {
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.game-card__dev {
  font-size: 11.5px;
}

/* One line of summary instead of a three-line block. */
.game-card__sum {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
}

.game-card__meta {
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
}

/* The star chip next to the score would repeat the score chip. */
.game-card__meta .rating {
  display: none;
}

/* ==========================================================================
   2. Section headings — a rule instead of a plain title
   ========================================================================== */

.section-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.section-head {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 8px;
}

/* ==========================================================================
   3. Hero — the guide cover instead of a neon banner
   ========================================================================== */

.hero {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.01em;
}

.btn {
  border-radius: var(--radius-sm);
}

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