/* ==========================================================
   RetroBay Collection – helpers sobre Tailwind
   (Tailwind se carga por CDN en la plantilla)
   ========================================================== */


/* Botón degradado principal */
.btn-gradient {
  background: linear-gradient(90deg, #1999e3, #3b82f6);
  color: #ffffff;
  font-weight: 600;
  border: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Botones de icono (acciones en las cards) */
.icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid rgba(156, 163, 175, 0.6); /* gray-400 */
  background-color: rgba(243, 244, 246, 1);   /* gray-100 */
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.icon-btn:hover {
  background-color: rgba(229, 231, 235, 1);   /* gray-200 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Cards en vista GRID */
.steam-card {
  background-color: rgba(249, 250, 251, 1); /* gray-50 */
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(229, 231, 235, 1); /* gray-200 */
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dark .steam-card {
  background-color: #1f2933; /* aprox steamPanel oscuro */
  border-color: #374151;
}
.steam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.4);
  border-color: rgba(96, 165, 250, 1); /* blue-400 */
}

/* Cards en vista LISTA */
.steam-list-item {
  background-color: rgba(249, 250, 251, 1); /* gray-50 */
  border-radius: 0.75rem;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dark .steam-list-item {
  background-color: #1f2933;
  border-color: #374151;
}
.steam-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
  border-color: rgba(96, 165, 250, 1);
}

/* Badges de info en las tarjetas */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  line-height: 1;
  background-color: rgba(243, 244, 246, 1); /* gray-100 */
  color: rgba(55, 65, 81, 1);               /* gray-700 */
  border: 1px solid rgba(209, 213, 219, 1); /* gray-300 */
}
.dark .badge {
  background-color: rgba(31, 41, 55, 1);    /* gray-800 */
  color: rgba(229, 231, 235, 1);            /* gray-200 */
  border-color: rgba(75, 85, 99, 1);        /* gray-600 */
}

/* Scroll horizontal bonito para similares / chips */
#relatedGames,
#consoleIcons {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 1) transparent;
}
#relatedGames::-webkit-scrollbar,
#consoleIcons::-webkit-scrollbar {
  height: 6px;
}
#relatedGames::-webkit-scrollbar-track,
#consoleIcons::-webkit-scrollbar-track {
  background: transparent;
}
#relatedGames::-webkit-scrollbar-thumb,
#consoleIcons::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 1);
  border-radius: 9999px;
}

/* Pequeño ajuste a imágenes de portada en grid */
.card-cover {
  object-fit: cover;
}

/* =========================================
   Chips de consola (selector multiple)
   ========================================= */
.console-pill {
  border: 1px solid #1a736d;
  background: transparent;
  color: #1a736d;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.console-pill:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.console-pill.selected {
  background-color: #1a736d;
  color: #ffffff;
}

/* WISHLIST*/

body.wishlist-list-view #wishlistGrid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.wishlist-list-view .wishlist-card {
    display: flex !important;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
}

body.wishlist-list-view .wishlist-card img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 10px;
}

/* =========================================
   Layout general colección – anti-scroll lateral
   ========================================= */

.rb-collection-main {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Por si algún padre flex se pasa de listo */
.rb-collection-main * {
  max-width: 100%;
}

/* Estadísticas: que todo parta líneas bien */
#statsPanel,
#statsPanel p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Carrusel de consolas: sin barra visible pero con scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* en móviles pequeños, un pelín menos padding para no sumar extra */
@media (max-width: 480px) {
  .rb-collection-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
