/* Scoped styles for modern section */
.gsp-modern-section {
  padding: 20px 0;
  width: 100%;
  overflow: visible;
}
.modern-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px 12px 40px;
  margin-bottom: 10px;
  position: relative;
}
.modern-header::before,
.modern-header::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f8f7e7, transparent);
  opacity: 0.9;
}
.modern-title-wrap {
  position: relative;
  z-index: 1;
  padding: 0 18px;
}
.modern-flame-icon {
  display: none;
}
/* Only show flame icon for "Top", "Nuevos", "Principales Juegos" or similar if desired, 
   but user asked for component-wide style. 
   We can keep the icon generic or conditional if needed. 
   For now, it's part of the "modern style". */

@keyframes flame-flicker {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}
.modern-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8f7e7;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.modern-view-all {
  background: #ffd700; /* Yellow */
  color: #000; /* Dark text for contrast */
  padding: 8px 24px;
  border-radius: 6px; /* Slightly rounded, not full pill */
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.5px;
  display: inline-block;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.modern-view-all:hover {
  background: #ffea00; /* Brighter yellow on hover */
  transform: translateY(-2px);
  color: #000;
}
.modern-games-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  padding: 10px 40px 0 40px;
  overflow: visible;
}
.modern-games-scroll::-webkit-scrollbar {
  display: none;
}
.game-card-modern {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
  margin-right: 0;
  position: relative;
  z-index: 10;
  cursor: pointer;
  /* Overrides for styles.css conflicts */
  transform: none;
  border-radius: 0;
  overflow: visible;
  opacity: 1;
}
.game-card-modern:hover {
  transform: translateY(-5px);
}
.modern-card-img-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #1a2c3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 11;
  border: 1px solid #3b4d61;
}
.modern-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  position: relative;
  z-index: 12;
  background: transparent !important;
}
.modern-card-title {
  font-size: 12px;
  color: #cbd5e1 !important;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  padding: 0 5px;
}

@media (max-width: 481px) {
  .hb-img {
    height: auto !important;
  }

  .hero-banner {
    height: max-content !important;
  }

  .app-container {
    padding-top: 40px !important;
  }

  .modern-providers-section {
    padding: 0px !important;
  }

  .modern-games-scroll {
    gap: 8px;
    padding: 0 12px;
    overflow-y: hidden;
  }

  .game-card-optimized {
    contain-intrinsic-size: 0px 0px !important;
    transform: translateY(0px) !important;
    padding: 0px !important;
  }
}

@media (max-width: 900px) {
  .modern-games-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px 0 12px;
    overflow-x: visible;
    overflow-y: visible;
  }

  .modern-games-scroll .game-card-modern:nth-child(n + 10) {
    display: none;
  }
}

.modern-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 10px 0; /* Increased top margin for separation */
  width: 100%;
}
