/* Slot Games Section - expandable grid with overlay */

.slot-games-section {
  padding: 1.5rem 0;
}

.slot-games-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 45, 106, 0.5);
}

.slot-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .slot-games-grid {
    gap: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile: show 4 initially, hide rest */
.slot-games-grid.expandable .slot-game-card:nth-child(n + 5) {
  display: none;
}

.slot-games-grid.expandable.expanded .slot-game-card:nth-child(n + 5) {
  display: flex;
}

@media (min-width: 768px) {
  .slot-games-grid.expandable .slot-game-card:nth-child(n + 5) {
    display: flex;
  }
}

.slot-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, rgba(26, 18, 32, 0.98) 0%, rgba(13, 10, 15, 0.98) 100%);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 20px rgba(255, 8, 68, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Hot flame badge on card */
.hot-flame-badge {
  position: absolute;
  top: -1rem;
  left: -0.75rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255, 100, 50, 0.8));
}

.hot-flame-badge .hot-flame-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: flame-flicker 0.6s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(1.15) translateY(-1px); opacity: 0.92; }
}

.slot-game-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 24px rgba(255, 45, 106, 0.3);
  transform: translateY(-2px);
}

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

.slot-game-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}



/* View All Games button */
.slot-games-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .slot-games-view-all-wrap {
    display: none;
  }
}

.slot-games-view-all-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-cyan);
  background: transparent;
  border: 2px solid var(--neon-cyan);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.slot-games-view-all-btn:hover {
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.3);
}


/* Overlay */
.slot-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.slot-game-overlay.show {
  opacity: 1;
  visibility: visible;
}

.slot-game-overlay-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.slot-game-overlay-content {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(255, 8, 68, 0.25), 0 0 80px rgba(0, 0, 0, 0.5);
}

.slot-game-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}

.slot-game-overlay-close:hover {
  background: rgba(255, 8, 68, 0.4);
  color: #fff;
}

.slot-game-overlay-image {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  object-position: bottom;
  border-radius: 12px 12px 0 0;
  background: rgba(0, 0, 0, 0.3);
}

.slot-game-overlay-body {
  padding: 1.25rem;
}

.slot-game-overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-pink);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 12px rgba(255, 45, 106, 0.5);
}

.slot-game-overlay-provider {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.slot-game-overlay-description-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.slot-game-overlay-description-wrap.has-hot {
  padding-top: 2rem;
}

.hot-flame-badge-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.hot-flame-badge-overlay .hot-flame-badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff6b35;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hot-flame-badge-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hot-flame-badge-overlay .hot-flame-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 100, 50, 0.6));
  animation: flame-flicker 0.6s ease-in-out infinite alternate;
}

.slot-game-overlay-description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0;
}

.slot-game-overlay-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.slot-game-overlay-stat {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.slot-game-overlay-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slot-game-overlay-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.slot-game-overlay-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slot-game-overlay-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 2px solid;
}

.slot-game-overlay-btn-demo {
  background: linear-gradient(135deg, var(--neon-red) 0%, var(--accent-end) 100%);
  border-color: var(--neon-red);
  color: #fff;
}

.slot-game-overlay-btn-demo:hover {
  box-shadow: 0 0 24px rgba(255, 8, 68, 0.5);
  transform: translateY(-1px);
}

.slot-game-overlay-btn-play {
  background: transparent;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.slot-game-overlay-btn-play:hover {
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transform: translateY(-1px);
}
