﻿/* Shared category pages — Template2 dark/gold */
.page-category .page {
  padding-bottom: 40px;
}

.category-panel {
  position: relative;
  margin-top: 12px;
  padding: 16px 14px 18px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 220, 160, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 10px 24px rgba(0, 0, 0, .28);
}
.category-panel::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background: url("../assets/bg.jpeg") center top / cover no-repeat;
  filter: blur(2px) saturate(1.35) brightness(1.08);
  transform: scale(1.08);
  pointer-events: none;
}
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      160deg,
      rgba(18, 6, 40, .58) 0%,
      rgba(40, 18, 70, .4) 45%,
      rgba(90, 48, 28, .3) 70%,
      rgba(18, 6, 40, .55) 100%
    );
  pointer-events: none;
}
.category-panel > * {
  position: relative;
  z-index: 1;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.category-head h1 {
  margin: 0;
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-size: clamp(13px, 1.6vw, 16px);
  color: #fff;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 14, 62, .88);
  border: 1px solid rgba(186, 160, 255, .32);
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.category-head h1 i { color: #ffd24a; }

.category-back {
  flex: 0 0 auto;
  background: rgba(28, 14, 62, .88);
  color: #ffe566;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, .35);
}
.category-back:hover {
  filter: brightness(1.08);
  color: #fff;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform .18s ease;
}
.provider-card:hover,
.provider-card.is-active {
  transform: translateY(-3px);
}
.provider-card:hover .provider-art,
.provider-card.is-active .provider-art {
  border-color: #f5c518;
  box-shadow:
    0 0 0 2px rgba(245, 197, 24, .35),
    0 10px 22px rgba(0, 0, 0, .35);
}

.provider-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #1a0a36;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.provider-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.provider-logo-pill {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58%;
  max-width: 84%;
  height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.provider-logo-pill img {
  display: block;
  max-height: 20px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.provider-card h2 {
  margin: 0;
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

/* Games list page */
.games-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.games-search {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, .35);
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
}
.games-search::placeholder { color: rgba(244, 239, 255, .45); }
.games-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.games-list .game-card {
  background: rgba(22, 10, 48, .82);
}

/* Promo / info / chat / rtp panels */
.content-panel {
  position: relative;
  margin-top: 12px;
  padding: 18px 16px 20px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 220, 160, .16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  color: #fff;
}
.content-panel::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background: url("../assets/bg.jpeg") center top / cover no-repeat;
  filter: blur(2px) saturate(1.3) brightness(1.05);
  pointer-events: none;
}
.content-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(16, 6, 36, .72);
  pointer-events: none;
}
.content-panel > * { position: relative; z-index: 1; }
.content-panel h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, "Fredoka", sans-serif);
  color: #f5c518;
  font-size: clamp(20px, 3vw, 28px);
}
.content-panel .lead {
  margin: 0 0 16px;
  color: rgba(244, 239, 255, .78);
  font-weight: 700;
  line-height: 1.45;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.promo-card {
  background: rgba(28, 14, 62, .85);
  border: 1px solid rgba(245, 197, 24, .28);
  border-radius: 14px;
  overflow: hidden;
}
.promo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.promo-card .promo-body {
  padding: 12px 14px 14px;
}
.promo-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #ffe566;
}
.promo-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(244, 239, 255, .72);
  line-height: 1.4;
}
.promo-card .btn-promo {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #ffe566, #f5c518);
  color: #3a1a00;
  font-weight: 800;
  cursor: pointer;
}

.rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rtp-table th,
.rtp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.rtp-table th {
  color: #ffe566;
  font-weight: 800;
}
.rtp-table td { color: rgba(244, 239, 255, .88); }
.rtp-hi { color: #4ade80; font-weight: 800; }
.rtp-mid { color: #f5c518; font-weight: 800; }
.rtp-lo { color: #fb7185; font-weight: 800; }

.chat-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 16px;
}
.chat-box i {
  font-size: 42px;
  color: #f5c518;
  margin-bottom: 12px;
}
.chat-box .btn-chat {
  display: inline-flex;
  margin-top: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #ffe566, #f5c518);
  color: #3a1a00;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .games-list { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .provider-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .games-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .promo-grid { grid-template-columns: 1fr; }
  .category-panel,
  .content-panel {
    margin-top: 8px;
    padding: 12px 10px 14px;
    border-radius: 14px;
  }
  .category-head h1 { font-size: 11px; padding: 7px 12px; }
  .category-back { font-size: 11px; padding: 6px 10px; }
  .provider-art { border-radius: 12px; border-width: 2px; }
  .provider-logo-pill { height: 22px; bottom: 6px; padding: 2px 8px; }
  .provider-logo-pill img { max-height: 14px; }
  .provider-card h2 { font-size: 10px; }
}
@media (max-width: 480px) {
  .provider-grid,
  .games-list { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* mobile: no background images */
@media (max-width: 768px) {
  .category-panel::before,
  .promo-panel::before,
  .rtp-panel::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}