/* ================================================
   EUGameHost — Games Catalogue Template
   Catalogue-only styles (hero+search, popular row,
   filters, game grid/cards). Tokens, fonts, header,
   footer, reviews, FAQ and trial classes all live in
   home-2026.css — do NOT duplicate them here.
   Scope: .eug-games
================================================ */

/* ---------- generic section helpers reused on this page ---------- */
.eug-games .eug-section {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--eug-border-soft);
}
.eug-games .eug-section--canvas { background: var(--eug-canvas); }
.eug-games .eug-section--navy   { background: var(--eug-deep-navy); }

.eug-games .eug-eyebrow {
  display: inline-block;
  font-family: var(--eug-font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eug-accent);
  margin: 0 0 14px;
}
.eug-games .eug-grad {
  background: var(--eug-beam);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--eug-blue);
}

/* ================================================
   1) HERO + SEARCH
================================================ */
.eug-gh-hero {
  position: relative;
  background: var(--eug-canvas);
  text-align: center;
  padding: clamp(96px, 13vw, 168px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--eug-border-soft);
  overflow: hidden;
}
.eug-gh-hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background: var(--eug-pulse);
  pointer-events: none;
}
/* honeycomb backdrop of game covers */
.eug-gh-hexwall {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  z-index: 0; display: flex; flex-direction: column;
  opacity: 0.62; pointer-events: none;
}
.eug-gh-hexrow { display: flex; gap: 8px; margin-top: -28px; }
.eug-gh-hexrow:first-child { margin-top: 0; }
.eug-gh-hexrow.shift { margin-left: 54px; }
.eug-gh-hex {
  width: 100px; height: 116px; flex: none; overflow: hidden;
  background: var(--eug-ink);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: eug-gh-hexin 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* staggered reveal — covers cascade in across the honeycomb (delay set per hex inline) */
@keyframes eug-gh-hexin {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .eug-gh-hex { animation: none; } }
.eug-gh-hex img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* dark scrim over the honeycomb so the headline + search stay crisp */
.eug-gh-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 76% at 50% 44%, rgba(7,11,18,0.95) 0%, rgba(7,11,18,0.74) 38%, rgba(7,11,18,0.4) 70%, rgba(7,11,18,0.18) 100%),
    linear-gradient(180deg, rgba(7,11,18,0.45) 0%, rgba(7,11,18,0.22) 35%, var(--eug-canvas) 100%);
}
.eug-gh-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}
.eug-gh-h1 {
  font-family: var(--eug-font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.04;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 18px;
}
.eug-gh-sub {
  color: var(--eug-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* search box */
.eug-gh-search {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.eug-gh-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--eug-blue);
  font-size: 1.05rem;
  pointer-events: none;
}
.eug-gh-search input {
  width: 100%;
  height: 64px;
  padding: 0 22px 0 56px;
  background: var(--eug-ink);
  border: 1px solid var(--eug-border);
  border-radius: 8px;
  color: var(--eug-frost);
  font-family: var(--eug-font-body);
  font-size: 1.02rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.eug-gh-search input::placeholder { color: var(--eug-muted); }
.eug-gh-search input:focus {
  border-color: var(--eug-border-blue);
  box-shadow: 0 0 0 3px rgba(69,199,255,0.14);
}

/* ================================================
   shared section heads
================================================ */
.eug-games .eug-gh-head { margin-bottom: clamp(28px, 4vw, 48px); }
.eug-games .eug-gh-head.center { text-align: center; }
.eug-games .eug-gh-h2 {
  font-family: var(--eug-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.eug-games .eug-gh-lead {
  color: var(--eug-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.eug-games .eug-gh-head.center .eug-gh-lead { margin: 0 auto; }

/* ================================================
   2) POPULAR GAMES PANEL
================================================ */
.eug-gh-popwrap {
  position: relative;
  border: 1px solid var(--eug-border-blue);
  border-radius: var(--eug-radius-panel);
  background:
    linear-gradient(180deg, rgba(69,199,255,0.05), rgba(69,199,255,0)) ,
    var(--eug-ink);
  padding: clamp(26px, 4vw, 44px);
}
.eug-gh-pill {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--eug-deep-navy);
  border: 1px solid var(--eug-border-blue);
  border-radius: var(--eug-pill);
  font-family: var(--eug-font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eug-blue-glow);
  white-space: nowrap;
}
.eug-gh-pill i { color: var(--eug-accent); }

.eug-gh-popgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 18px;
}
/* vertical featured card: full cover on top, details below */
.eug-gh-pop {
  display: block;
  border: 1px solid var(--eug-border);
  border-radius: var(--eug-radius-card);
  background: var(--eug-deep-navy);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.eug-gh-pop:hover {
  transform: translateY(-4px);
  border-color: var(--eug-border-blue);
  box-shadow: var(--eug-shadow-blue);
}
.eug-gh-pop-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.eug-gh-pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eug-gh-pop-body { padding: 16px 18px 18px; }
.eug-gh-pop-name {
  font-family: var(--eug-font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 4px;
  color: var(--eug-frost);
}
.eug-gh-pop-price {
  font-size: 0.92rem;
  color: var(--eug-muted);
  margin: 0 0 12px;
}
.eug-gh-pop-price b { color: var(--eug-blue); font-weight: 700; }

/* ================================================
   platform-icon row (shared pop + grid)
================================================ */
.eug-gh-plats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eug-muted);
  font-size: 0.95rem;
}
.eug-gh-plats i { transition: color 0.18s ease; }
.eug-gh-pop:hover .eug-gh-plats i,
.eug-gh-card:hover .eug-gh-plats i { color: var(--eug-blue-glow); }

/* ================================================
   3) FILTERS
================================================ */
.eug-gh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.eug-gh-filter {
  appearance: none;
  cursor: pointer;
  padding: 11px 22px;
  background: var(--eug-ink);
  border: 1px solid var(--eug-border);
  border-radius: 8px;
  color: var(--eug-muted);
  font-family: var(--eug-font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.eug-gh-filter:hover { color: var(--eug-frost); border-color: var(--eug-border-blue); }
.eug-gh-filter.is-active {
  color: var(--eug-canvas);
  background: var(--eug-blue);
  border-color: var(--eug-blue);
}
/* the [hidden] attr can't beat the flex display, so hide explicitly while filtering */
.eug-gh-filters[hidden] { display: none; }
/* shown in place of the buttons while filtering */
.eug-gh-active {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
  color: var(--eug-muted);
  font-size: 0.95rem;
}
.eug-gh-clearlink {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--eug-blue);
  font-family: var(--eug-font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0 0 0 4px;
}
.eug-gh-clearlink i { font-size: 0.8em; margin-right: 4px; }
.eug-gh-clearlink:hover { color: var(--eug-blue-glow); text-decoration: underline; }

/* ================================================
   4) GAME GRID + CARDS
================================================ */
.eug-gh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
/* vertical card: full portrait cover on top, details below */
.eug-gh-card {
  display: block;
  border: 1px solid var(--eug-border);
  border-radius: var(--eug-radius-card);
  background: var(--eug-ink);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.eug-gh-card:hover {
  transform: translateY(-4px);
  border-color: var(--eug-border-blue);
  box-shadow: var(--eug-shadow-blue);
}
.eug-gh-card[hidden] { display: none; }

.eug-gh-card-img {
  position: relative;
  aspect-ratio: 3 / 4;   /* matches the cover art so the full image shows, no crop */
  overflow: hidden;
}
.eug-gh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.eug-gh-card:hover .eug-gh-card-img img { transform: scale(1.05); }

.eug-gh-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--eug-font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eug-gh-badge--new {
  background: var(--eug-accent);
  color: #0d2400;
}
.eug-gh-badge--update {
  background: var(--eug-blue);
  color: var(--eug-canvas);
}

.eug-gh-card-body { padding: 16px 18px 18px; }
.eug-gh-card-name {
  font-family: var(--eug-font-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--eug-frost);
}
.eug-gh-card-price {
  font-size: 0.86rem;
  color: var(--eug-muted);
  margin: 0 0 12px;
}
.eug-gh-card-price b { color: var(--eug-blue); font-weight: 700; }

/* empty state for search */
.eug-gh-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--eug-muted);
  font-size: 1.02rem;
}
.eug-gh-empty b { color: var(--eug-frost); }

/* ================================================
   responsive
================================================ */
@media (max-width: 1100px) {
  .eug-gh-grid { grid-template-columns: repeat(3, 1fr); }
  .eug-gh-popgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .eug-gh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .eug-gh-grid { grid-template-columns: 1fr; }
  .eug-gh-popgrid { grid-template-columns: 1fr; }
  .eug-gh-search input { height: 56px; }
}
