/* ===== Contenedor padre ===== */
.hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  width: 100%;
  max-width: 1920px;
  box-sizing: border-box;
  padding: 30px 30px 30px 40px;
  
}

/* ===== Paneles ===== */
.hc-panel {
   --hc-shade: linear-gradient(170deg, rgba(0, 0, 0, 0.15) 0%, rgb(0 0 0 / 88%) 30%, rgb(0 0 0) 60%, rgba(0, 0, 0, 0.15) 100%);
  position: relative;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 2px solid transparent;
  background:
    var(--hc-shade) padding-box,
    var(--hc-texture) center / cover padding-box,
    var(--hc-border) border-box;
  box-shadow: 0 0 20px -6px var(--hc-glow);
}

.hc-hot {
  --hc-texture: url('/img/casino/juegoshotandcold/background-hot.webp');
  --hc-border: linear-gradient(135deg, #ff2e1f, #ff9a1f);
  --hc-glow: #ff5a1f;
  --hc-icon: url('/img/casino/juegoshotandcold/icon-gradient-fuego-500.webp');
}

.hc-cold {
  --hc-texture: url('/img/casino/juegoshotandcold/background-cold.webp');
  --hc-border: linear-gradient(135deg, #3fd0ff, #6a5cff);
  --hc-glow: #3fd0ff;
  --hc-icon: url('/img/casino/juegoshotandcold/icon-gradient-frio-500.webp');
}

/* ===== Título centrado con ícono ===== */
.hc-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.hc-title::before {
  content: "";
  width: 1em;
  height: 1em;
  background: var(--hc-icon) no-repeat center / contain;
  transform: translateY(-0.15em);
}
.hc-panel.hc-hot .hc-title::before{
    filter: drop-shadow(0 0 4px var(--hc-glow)) drop-shadow(0 0 10px #ffffff);
}


/* ===== Botón "Mostrar todo" (abajo, al centro) ===== */
.hc-more {
  display: flex;
  align-items: center;
  gap: 0.4em;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.5em 1.2em;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#000, #000) padding-box,
    var(--hc-border) border-box;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

.hc-more::after {
  content: "\203A";
  font-size: 1.7em;
  line-height: 1;
  margin-bottom: 4px;
}

/* ===== Grilla de juegos de cada panel ===== */
.hc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

/* ===== Juego: tarjeta con imagen a la izquierda y texto a la derecha ===== */
.hc-game {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  min-width: 0;
  transition: background 0.2s;
}

.hc-game:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hc-thumb {
  flex: 0 0 30%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-image: var(--image), var(--fallback-image);
  background-size: cover;
  background-position: center;
}

.hc-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.hc-name {
  font-weight: bold;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hc-provider {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.85;
}

/* ===== Overlay con play (sobre la miniatura) ===== */
.hc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.hc-play {
  width: 60%;
  aspect-ratio: 1;
  background: url('/img/tests/play.gif') no-repeat center / contain;
  transform: scale(0.8);
  transition: transform 0.2s ease-out;
}

.hc-game:hover .hc-overlay {
  opacity: 1;
}

.hc-game:hover .hc-play {
  transform: scale(1);
}

/* ===== Tablet: paneles apilados ===== */
@media (max-width: 980px) {
  .hc-grid {
    grid-template-columns: 1fr;
    padding:0;
  }
  .hc-title {
    font-size: 1.8rem;  
  }
}

/* ===== Mobile: 2 columnas ===== */

@media (max-width: 620px) {

  .hc-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  
}

/* ===== Mobile chico: tarjetas verticales ===== */
@media (max-width: 420px) {
  .hc-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .hc-game {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .hc-thumb {
    flex: none;
    width: 100%;
  }

  .hc-details {
    text-align: center;
  }

  .hc-name {
    font-size: 0.8rem;
  }

  .hc-provider {
    font-size: 0.6rem;
  }
}