/* ============================================================
   SLOTS PAGE — slots.css
   ============================================================ */

/* ── Hero Banner ─────────────────────────────────────────── */
.slots-hero {
  position: relative;
  overflow: hidden;
}

.slots-hero .swiper-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Slots Content Wrapper ───────────────────────────────── */
.slots-content {
  margin-bottom: var(--section-gap);
}

.slots-panel {
  background: var(--gradient-card);
  border: 1px solid #3f1f66;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ── Provider Filter ─────────────────────────────────────── */
.provider-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 0;
}

.provider-filter__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 60px;
  padding: 0 18px;
  border-radius: var(--radius-xs);
  background: rgba(13, 9, 30, 0.7);
  border: 1px solid rgba(63, 31, 102, 0.8);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
  min-width: 100px;
}

.provider-tab:hover,
.provider-tab.is-active {
  background: linear-gradient(0deg, #5111E0 0%, #9045FD 100%);
  border: 1px solid #A267E0;
  box-shadow: var(--shadow-glow-blue);
}

.provider-tab__logo,
.provider-tab__logo-h {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.provider-tab__logo-h {
  display: none;
}

.provider-tab.is-active .provider-tab__logo,
.provider-tab:hover .provider-tab__logo {
  display: none;
}

.provider-tab.is-active .provider-tab__logo-h,
.provider-tab:hover .provider-tab__logo-h {
  display: block;
}

/* ── Filter Tabs + Search ────────────────────────────────── */
.slots-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.filter-tab {
  height: 36px;
  padding: 0 22px;
  border-radius: var(--radius-xs);
  background: rgba(13, 9, 30, 0.7);
  border: 1px solid rgba(63, 31, 102, 0.8);
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.filter-tab.is-active,
.filter-tab:hover {
  background: linear-gradient(0deg, #5111E0 0%, #9045FD 100%);
  border: 1px solid #A267E0;
  box-shadow: var(--shadow-glow-blue);
  color: #fff;
}

.slots-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 9, 30, 0.7);
  border: 1px solid rgba(63, 31, 102, 0.8);
  border-radius: var(--radius-xs);
  padding: 0 14px;
  height: 36px;
  transition: border-color var(--transition-fast);
}

.slots-search:focus-within {
  border-color: var(--color-primary);
}

.slots-search svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.slots-search input {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  width: 160px;
}

.slots-search input::placeholder {
  color: var(--color-text-soft);
}

/* ── Game Grid ───────────────────────────────────────────── */
.slots-game-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  padding: 20px 24px;
}

/* ── Game Card ───────────────────────────────────────────── */
.slots-game-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slots-game-card__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(63, 31, 102, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.slots-game-card__link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-blue);
  border-color: var(--color-secondary);
}

.slots-game-card__thumb {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Hover dim */
.slots-game-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 22, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.slots-game-card__link:hover::before {
  opacity: 1;
}

/* Play Now overlay */
.slots-game-card__link::after {
  content: "Play Now";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(0deg, #5111E0 0%, #9045FD 100%);
  border: 1px solid #A267E0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-glow-blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 3;
}

.slots-game-card__link:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Game name label */
.slots-game-card__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

/* ── Load More ───────────────────────────────────────────── */
.slots-load-more {
  display: flex;
  justify-content: center;
  padding: 4px 24px 28px;
}

.slots-load-more .btn-register {
  padding: 12px 48px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1399.98px) {
  .slots-game-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }
}

@media (max-width: 1199.98px) {
  .slots-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 991.98px) {
  .provider-filter {
    padding: 16px 16px 0;
    gap: 8px;
  }

  .provider-filter__row {
    gap: 8px;
  }

  .provider-tab {
    height: 44px;
    padding: 0 12px;
    min-width: 80px;
  }

  .provider-tab__logo,
  .provider-tab__logo-h {
    height: 24px;
    max-width: 80px;
  }

  .slots-filter {
    padding: 12px 16px;
    gap: 6px;
  }

  .slots-search {
    width: 100%;
    margin-left: 0;
  }

  .slots-search input {
    width: 100%;
  }

  .slots-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .slots-game-card__name {
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  /* 3 logos per row — even grid instead of the wrapping flex
     (flex:1 + wrap was breaking to an uneven 4+2 when the active
     tab widened). 6 tabs per row div → 2 rows of 3. */
  .provider-filter__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .provider-tab {
    height: 44px;
    padding: 0 10px;
    min-width: 0;
  }

  .slots-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .slots-game-card__name {
    font-size: 10px;
  }
}

@media (max-width: 575.98px) {
  .slots-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .slots-game-card__name {
    font-size: 9px;
  }
}

/* ============================================================
   MOBILE — Hero inset card + reused index category section
   ============================================================ */

/* The category section is the index component (.category-section /
   .category-swiper / .category-card). On the slots page it's surfaced
   only once the header nav collapses (≤991) — desktop keeps it hidden,
   as the mega-menu already covers category nav there. */
.slots-mobile-cats {
  display: none;
}

@media (max-width: 991.98px) {
  /* PSD: hero is an inset rounded card with a hairline border,
     matching the index hero treatment (15px radius, #2F313C).
     The container wrapper handles the side inset; the card border
     + radius live on the swiper so the desktop banner (which has
     its corners baked in) stays untouched. */
  .slots-hero {
    margin-top: 15px;
  }

  .slots-hero-swiper {
    border: 1px solid #2F313C;
    border-radius: 15px;
    overflow: hidden;
  }

  .slots-hero-swiper .swiper-button-prev,
  .slots-hero-swiper .swiper-button-next,
  .slots-hero-swiper .swiper-pagination {
    display: none;
  }

  /* PSD: horizontal category strip sits between banner and the
     provider panel (~3 cards visible, labels baked into artwork). */
  .slots-mobile-cats {
    display: block;
    margin-top: 14px;
  }

  /* Highlight the current section (Slots) within the strip. */
  .slots-mobile-cats .category-card.is-current {
    border-color: var(--color-border-bright);
    box-shadow: var(--shadow-card), var(--shadow-glow-blue);
  }
}
