/* ============================================================
   VegasBet — Games 24/7 CSS
   ============================================================ */

/* ── Two-column layout (sidebar + content) ──────────────────── */
.games-layout {
  display: grid;
  grid-template-columns: var(--sidebar-sport, 280px) 1fr;
  gap: 8px;
  align-items: start;
}

/* ── Content area ───────────────────────────────────────────── */
.games-content-area {
  min-width: 0;
  padding-top: 14px;
  padding-bottom: 40px;
  padding-right: 440px; /* clear the fixed floating pill (right:80px + width:340px + 20px buffer) */
}

/* ── Active nav link ────────────────────────────────────────── */
.snl-item--active {
  color: var(--accent, #a855f7) !important;
  background: var(--purple-dim, rgba(124,58,237,0.12));
}

/* ── Hero Banner ────────────────────────────────────────────── */
.games-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, #12082a 0%, #1f0d45 40%, #2a1060 70%, #1a0533 100%);
  border: 1px solid rgba(168,85,247,0.25);
  min-height: 140px;
  display: flex;
  align-items: center;
}
.games-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(168,85,247,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.games-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.games-hero-dice {
  position: absolute;
  opacity: 0.18;
}
.games-hero-dice--1 {
  width: 90px; height: 90px;
  right: 12%;
  top: -10px;
  transform: rotate(-20deg);
}
.games-hero-dice--2 {
  width: 60px; height: 60px;
  right: 26%;
  bottom: -10px;
  transform: rotate(15deg);
}
.games-hero-ball {
  position: absolute;
  width: 70px; height: 70px;
  right: 6%;
  bottom: -5px;
  opacity: 0.14;
}

.games-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.games-hero-badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.4);
  color: #a855f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 2px;
}
.games-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #f0eeff;
  line-height: 1.1;
  margin: 0;
}
.games-hero-sub {
  font-size: 14px;
  color: #a89cc8;
  margin: 0;
}
.games-hero-btn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.games-hero-btn:hover { opacity: 0.85; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.games-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8884aa;
  margin-bottom: 20px;
}
.games-breadcrumb-link {
  color: #8884aa;
  text-decoration: none;
  transition: color 0.2s;
}
.games-breadcrumb-link:hover { color: #a855f7; }
.games-breadcrumb-sep { color: #8884aa; }
.games-breadcrumb-current { color: #f0eeff; }

/* ── Tabs ───────────────────────────────────────────────────── */
.games-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  margin-bottom: 4px;
}

.games-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 8px;
  margin-right: 28px;
  font-size: 16px;
  font-weight: 500;
  color: #8884aa;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  top: 1px; /* aligns border-bottom with container border */
}
.games-tab:hover { color: #f0eeff; }
.games-tab--active {
  color: #f0eeff;
  font-weight: 700;
  border-bottom-color: #a855f7;
}

/* ── Section heading ────────────────────────────────────────── */
.games-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #f0eeff;
  margin: 24px 0 16px;
}

/* ── Favourites empty state ─────────────────────────────────── */
.games-fav-empty {
  display: none;
  text-align: center;
  color: #8884aa;
  font-size: 15px;
  padding: 48px 24px;
}

/* ── Grid ───────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── Game Card ──────────────────────────────────────────────── */
.game-card {
  background: #1c1c1f;
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.25);
  border-color: rgba(168,85,247,0.3);
}
.game-card--soon {
  cursor: default;
}

/* ── Card preview area ──────────────────────────────────────── */
.game-card-preview {
  position: relative;
  /* Matches the preview art (2752×1536) so images fill edge-to-edge with no
     crop and no distortion; the 3 "soon" cards centre the logo on the gradient. */
  aspect-ratio: 43 / 24;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Per-game gradient backgrounds ─────────────────────────── */
.game-card-preview--plinko {
  background: linear-gradient(135deg, #1a0533 0%, #2d1060 50%, #1a0533 100%);
}
.game-card-preview--miner {
  background: linear-gradient(135deg, #0d1a0d 0%, #1a3a20 40%, #1a0a2e 100%);
}
.game-card-preview--coinflip {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1060 50%, #12082a 100%);
}
.game-card-preview--dice {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a4a 50%, #0d0d1a 100%);
}
.game-card-preview--crash {
  background: linear-gradient(135deg, #1a0a0d 0%, #3d1a1a 50%, #1a0533 100%);
}
.game-card-preview--wheel {
  background: linear-gradient(135deg, #1a0a3e 0%, #3d2060 50%, #1a0a3e 100%);
}

/* ── Full-bleed preview image (Plinko / Miner / Coinflip) ───── */
.game-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ratio matches the art → no crop, no distortion */
  display: block;
}

/* ── Logo placeholder (the "soon" games) ────────────────────── */
.game-card-logo {
  position: relative;
  z-index: 2;
  width: 34%;
  max-width: 110px;
  height: auto;
  opacity: 0.8;
}

/* ── Badge ──────────────────────────────────────────────────── */
.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}
.game-card-badge--hot  { background: #ef4444; color: #fff; }
.game-card-badge--new  { background: #10b981; color: #fff; }
/* Minimalist "soon" tag: hairline outline, muted text, translucent dark fill */
.game-card-badge--soon {
  background: rgba(13,13,13,0.5);
  color: #b8b3d0;
  border: 1px solid rgba(136,132,170,0.35);
  font-weight: 600;
  padding: 2px 9px;
  letter-spacing: 0.6px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── Favourite button ───────────────────────────────────────── */
.game-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 4;
}
.game-card-fav:hover { background: rgba(0,0,0,0.6); }
.game-card-fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8884aa;
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.game-card-fav:hover svg { stroke: #ef4444; }
.game-card-fav.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* ── Coming Soon overlay (hover only) ──────────────────────── */
.game-card-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.game-card-soon-overlay span {
  font-size: 14px;
  font-weight: 600;
  color: #f0eeff;
  letter-spacing: 0.3px;
}
.game-card--soon:hover .game-card-soon-overlay {
  opacity: 1;
}

/* ── Card info / title bar ──────────────────────────────────── */
.game-card-info {
  padding: 12px 16px;
}
.game-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #f0eeff;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.games-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.games-animate.visible {
  opacity: 1;
  transform: none;
}

/* Cascade delays */
.games-grid .game-card:nth-child(1)  { transition-delay: 0.03s; }
.games-grid .game-card:nth-child(2)  { transition-delay: 0.06s; }
.games-grid .game-card:nth-child(3)  { transition-delay: 0.09s; }
.games-grid .game-card:nth-child(4)  { transition-delay: 0.12s; }
.games-grid .game-card:nth-child(5)  { transition-delay: 0.15s; }
.games-grid .game-card:nth-child(6)  { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1300px) {
  /* Cards would get cramped at 3-up once the sidebar + floating-pill
     reservation eat the width — drop to 2-up. */
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  /* Hide sidebar — go single column */
  .games-layout {
    grid-template-columns: 1fr;
  }
  .games-layout .sidebar-column {
    display: none;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .games-tab {
    font-size: 14px;
    margin-right: 20px;
  }
  .games-content-area { padding-right: 0; }
  .games-hero { padding: 24px 20px; min-height: 120px; }
  .games-hero-title { font-size: 24px; }
  .games-hero-dice--1 { width: 70px; height: 70px; }
  .games-hero-dice--2 { width: 44px; height: 44px; }
  .games-hero-ball { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card-name { font-size: 13px; }
  .game-card-info { padding: 10px 12px; }
  .games-hero-title { font-size: 20px; }
  .games-hero-sub { font-size: 12px; }
}
