/* ═══════════════════════════════════════════════════════════════
   GosuPlay Esportsbook — Section Stylesheet
   ───────────────────────────────────────────────────────────────
   Esportsbook-specific components only. Requires shared/css/base.css
   to be loaded first (design tokens, header, hero, tables, etc.).

   Components here:
     1. Game card grid     (hub — game title cards)
     2. Guide strip        (hub — guide link list)
     3. Feature grid       (hub + game pages — platform callouts)
     4. Match list         (game pages — upcoming matches)
     5. Promo ref card     (match pages — linked promotion)
     6. Article meta       (news pages — author/date bar)
     7. Article body       (news pages — prose sections + pull quote)
     8. Related articles   (news pages — end-of-article grid)
   ═══════════════════════════════════════════════════════════════ */

/* ── HUB: GAME CARD GRID ── */
.games-hub {
  padding: clamp(24px, 4vw, 48px) var(--gap) clamp(32px, 5vw, 56px);
  flex: 1;
}

.games-hub-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.game-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.45s ease both;
  text-decoration: none;
  color: inherit;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.10s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.20s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.30s; }

.game-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--page-accent) 40%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.game-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-game {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.game-card-title {
  font-family: var(--f-head);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.15;
}

.game-card-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
  flex: 1;
}

.game-card-foot {
  padding: 0 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: opacity 0.15s;
}

.game-card-link:hover { opacity: 0.75; }
.game-card-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── HUB: GUIDE STRIP ── */
.guide-strip {
  padding: 0 var(--gap) clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
  padding-top: clamp(32px, 4vw, 48px);
}

.guide-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.guide-strip-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--dark-2);
  text-decoration: none;
  transition: background 0.12s;
}

.guide-item:hover { background: var(--dark-3); }

.guide-item-text { flex: 1; min-width: 0; }

.guide-item-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 3px;
}

.guide-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-item-arrow {
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.guide-item:hover .guide-item-arrow {
  color: var(--yellow);
  transform: translateX(3px);
}

/* ── FEATURE GRID (hub + game pages) ── */
.features {
  padding: clamp(32px, 5vw, 56px) var(--gap);
  border-top: 1px solid var(--border);
  background: var(--dark-2);
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.features-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--page-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--page-accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow);
}

.feature-icon svg { width: 18px; height: 18px; }

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

/* ── GAME PAGE: FEATURED MATCHES ── */
.match-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.match-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.match-item:last-child { border-bottom: none; }
.match-item:hover { background: var(--dark-3); }
.match-item:hover .guide-item-arrow { color: var(--yellow); transform: translateX(3px); }

.match-item-comp {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.match-item-vs {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.match-item-date { text-align: right; }

.match-item-date-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
}

.match-item-date-time {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.match-item-odds { text-align: right; }

.match-item-odds-value {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
}

.match-item-odds-label {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

/* ── MATCH PAGE: PROMOTION REFERENCE CARD ── */
.promo-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
  padding: 20px 24px;
}

.promo-ref-text { flex: 1; }

.promo-ref-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 5px;
}

.promo-ref-title {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.promo-ref-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
}

.promo-ref-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.promo-ref-cta:hover { opacity: 0.75; }
.promo-ref-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── NEWS: ARTICLE META BAR ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0 0;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
}

.article-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--yellow); }
.article-meta-item strong { color: var(--mid); font-weight: 600; }

/* ── NEWS: ARTICLE BODY ── */
.article-section {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.article-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 16px;
}

.article-section p:last-child { margin-bottom: 0; }

.article-section ul,
.article-section ol {
  margin: 0 0 16px 20px;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.75;
}

.article-section li { margin-bottom: 6px; }

.article-pullquote {
  border-left: 3px solid var(--yellow);
  padding: 16px 20px;
  background: rgba(108,255,0,0.04);
  border-radius: 0 6px 6px 0;
  margin: 0 0 24px;
}

.article-pullquote p {
  font-size: 16px !important;
  font-style: italic;
  color: var(--white) !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* ── NEWS: RELATED ARTICLES ── */
.related {
  padding: clamp(32px, 5vw, 56px) var(--gap);
  border-top: 1px solid var(--border);
}

.related-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.related-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--yellow);
  border-radius: 8px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.related-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
}

.related-card-title {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.related-card-desc {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
  flex: 1;
}

.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  margin-top: 4px;
}

.related-card-link svg { width: 11px; height: 11px; }

/* ── HUB: VIRTUAL SPORTS DIVIDER ── */
.vsports-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.vsports-divider::before,
.vsports-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Virtual sport cards use .game-card — the eyebrow label "Virtual Sports"
   distinguishes them visually; no separate class needed. */

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .game-grid { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .match-item { grid-template-columns: 1fr auto auto; }
  .match-item-date { display: none; }
}
