/* ==========================================================================
   Bonanza Slots — Bootstrap 5 dark theme
   Brand: logo purple #6847F5 / #A95BF3 · dark #04040C · light #F0F0F0
   Mobile-first, Montserrat
   ========================================================================== */

:root {
  --bb-bg: #04040c;
  --bb-surface: #0c0b1a;
  --bb-surface-2: #141127;
  --bb-panel: rgba(23, 9, 48, 0.85);
  --bb-primary: #6847f5;
  --bb-secondary: #a95bf3;
  --bb-blue: #9cd0ff;
  --bb-light: #f0f0f0;
  --bb-muted: #9b9bb4;
  --bb-border: rgba(104, 71, 245, 0.24);
  --bb-border-strong: rgba(104, 71, 245, 0.5);
  --bb-gold: #ffb703;
  --bb-radius: 16px;
  --bb-radius-sm: 10px;
  --bb-gradient: linear-gradient(135deg, #6847f5 0%, #a95bf3 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bb-light);
  background-color: var(--bb-bg);
  background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(104, 71, 245, 0.18), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(169, 91, 243, 0.10), transparent 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--bb-secondary);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--bb-blue); }

.text-muted-2 { color: var(--bb-muted) !important; }
.text-gold { color: var(--bb-gold) !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(4, 4, 12, 0.97);
  border-bottom: 1px solid var(--bb-border);
}
.site-header .navbar-brand img { height: 48px; width: auto; }
.site-header .navbar-toggler { border-color: rgba(240, 240, 240, 0.25); }
.site-header .nav-link {
  color: var(--bb-light);
  font-weight: 600;
  font-size: .95rem;
  padding: .55rem .85rem;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--bb-secondary); }

/* Offcanvas (mobile menu) */
.offcanvas {
  background-color: var(--bb-surface) !important;
  color: var(--bb-light);
}
.offcanvas .nav-link { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.offcanvas .nav-link:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn-gradient {
  background: var(--bb-gradient);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: var(--bb-radius-sm);
  padding: .5rem 1.5rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(104, 71, 245, 0.35);
}
.btn-gradient.btn-lg { padding: .5rem 1.9rem; font-size: 1.05rem; }

.btn-outline-gradient {
  background: transparent;
  color: var(--bb-light);
  font-weight: 700;
  border: 1px solid var(--bb-border-strong);
  border-radius: var(--bb-radius-sm);
  padding: .72rem 1.5rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-outline-gradient:hover {
  background: rgba(104, 71, 245, 0.16);
  border-color: var(--bb-secondary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero .hero-badge {
  display: inline-block;
  background: rgba(104, 71, 245, 0.18);
  border: 1px solid var(--bb-border-strong);
  color: #cfc1ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.12;
}
.hero .lead {
  color: #c7c4d6;
  font-size: 1.02rem;
  max-width: 640px;
}
.hero .hero-img {
  border-radius: var(--bb-radius);
  box-shadow: 0 30px 80px rgba(104, 71, 245, 0.28);
}

/* Hero with collage background (homepage) */
.hero-collage {
  background:
    linear-gradient(90deg, rgba(4, 4, 12, 0.95) 0%, rgba(4, 4, 12, 0.82) 42%, rgba(4, 4, 12, 0.38) 100%),
    url("../../collage.jpg") center / cover no-repeat;
  background-color: var(--bb-bg);
  min-height: 460px;
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  align-items: center;
}
.hero-collage .container { width: 100%; }

/* ---------- Section headers ---------- */
.section-kicker {
  display: inline-block;
  color: var(--bb-secondary);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-title { font-size: 1.75rem; }
.section-lead { color: var(--bb-muted); max-width: 760px; }

/* ---------- Slot card ---------- */
.slot-card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.slot-card:hover {
  transform: translateY(-4px);
  border-color: var(--bb-border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.slot-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0816;
  overflow: hidden;
}
.slot-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-card .thumb .rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(4, 4, 12, 0.8);
  color: var(--bb-gold);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 3, 0.35);
}
.slot-card .body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.slot-card .provider {
  color: var(--bb-secondary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slot-card .title { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0; }
.slot-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}
.slot-card .meta .chip {
  background: rgba(104, 71, 245, 0.12);
  border: 1px solid var(--bb-border);
  color: #d8d3ea;
  font-size: .76rem;
  font-weight: 600;
  padding: .28rem .6rem;
  border-radius: 999px;
}
.slot-card .meta .chip.hi { color: var(--bb-gold); border-color: rgba(255, 183, 3, 0.35); }

/* ---------- Provider / casino / blog cards ---------- */
.entity-card {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.5rem 1.1rem;
  text-align: center;
  height: 100%;
  transition: transform .18s ease, border-color .2s ease;
}
.entity-card:hover { transform: translateY(-4px); border-color: var(--bb-border-strong); }
.entity-card .logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: #100c22;
/*  padding: .5rem;
  margin-bottom: .9rem;*/
}
.entity-card .logo.rect { border-radius: var(--bb-radius-sm); width: 360px; height: 200px; }
@media (max-width: 767.98px) {
  .entity-card .logo.rect {
    width: 100%;
    height: auto;
  }
}
.entity-card .name { color: #fff; font-weight: 700; font-size: 1rem; }
.entity-card .count { color: var(--bb-muted); font-size: .8rem; }

/* Horizontal previews (articles): 4:3 or 16:9 */
.img-ratio-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}
.img-ratio-4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Filter bar (catalogue) ---------- */
.filter-bar {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.1rem;
}
.filter-bar .form-label {
  color: var(--bb-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.filter-bar .form-control,
.filter-bar .form-select {
  background-color: #100c22;
  border: 1px solid var(--bb-border);
  color: var(--bb-light);
  border-radius: var(--bb-radius-sm);
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
  border-color: var(--bb-secondary);
  box-shadow: 0 0 0 .2rem rgba(169, 91, 243, 0.18);
  background-color: #100c22;
  color: var(--bb-light);
}
.filter-bar .form-control::placeholder { color: #6b6880; }
.result-count { color: var(--bb-muted); font-size: .85rem; }

/* ---------- Game page ---------- */
.demo-frame {
  position: relative;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: #06050f;
  aspect-ratio: 4 / 3;
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Demo fullscreen controls */
.demo-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 12, 0.72);
  border: 1px solid var(--bb-border-strong);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.demo-expand:hover { background: rgba(104, 71, 245, 0.55); }

.demo-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: none;
  justify-content: center;
  padding: 1.6rem 1rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(4, 4, 12, 0.92) 55%);
}

.demo-frame.demo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
}
.demo-frame.demo-fullscreen .demo-cta { display: flex; }
.demo-frame.demo-fullscreen .demo-expand {
  top: 16px;
  right: 16px;
}

body.demo-locked { overflow: hidden; }

.specs-box {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.1rem 1.25rem;
}
.specs-box .spec {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: .92rem;
}
.specs-box .spec:last-child { border-bottom: 0; }
.specs-box .spec .k { color: var(--bb-muted); }
.specs-box .spec .v { color: #fff; font-weight: 600; text-align: right; }

/* ---------- Tabs (provider page) ---------- */
.bb-tabs .nav-link {
  color: var(--bb-muted);
  font-weight: 700;
  border: 0;
  border-radius: var(--bb-radius-sm);
  padding: .7rem 1.4rem;
}
.bb-tabs .nav-link.active {
  background: var(--bb-gradient);
  color: #fff;
}

/* ---------- Tables ---------- */
.table-dark-custom {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bb-light);
  --bs-table-border-color: var(--bb-border);
}
.table-dark-custom thead th {
  background: #100c22;
  color: var(--bb-secondary);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--bb-border-strong);
}
.table-dark-custom tbody td { font-size: .92rem; vertical-align: middle; }

/* ---------- FAQ ---------- */
.accordion-item {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm) !important;
  margin-bottom: .7rem;
  overflow: hidden;
}
.accordion-button {
  background: var(--bb-surface);
  color: #fff;
  font-weight: 700;
  border-radius: var(--bb-radius-sm) !important;
}
.accordion-button:not(.collapsed) {
  background: rgba(104, 71, 245, 0.16);
  color: #fff;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--bb-border-strong); }
.accordion-body { color: #c7c4d6; }

/* ---------- Article / prose ---------- */
.prose { color: #c7c4d6; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose h4 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose img { border-radius: var(--bb-radius); }
.prose blockquote {
  border-left: 3px solid var(--bb-primary);
  padding: .4rem 1rem;
  color: #e8e4f5;
  background: rgba(104, 71, 245, 0.08);
  border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bb-gradient);
  border-radius: var(--bb-radius);
  padding: 2.4rem 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06050f;
  border-top: 1px solid var(--bb-border);
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.site-footer h5 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.site-footer a { color: #b9b6cc; }
.site-footer a:hover { color: var(--bb-secondary); }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer .about-text { color: #9b98ad; font-size: .9rem; }

.rg-block {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 1.1rem 1.2rem;
}
.rg-block .rg-title {
  color: var(--bb-gold);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.rg-block .rg-text { color: #b9b6cc; font-size: .84rem; }
.rg-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.rg-badges a {
  background: #100c22;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: .35rem .6rem;
  display: inline-flex;
  align-items: center;
}
.rg-badges img { height: 28px; width: auto; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .4rem;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 2.4rem;
  padding: 1.2rem 0;
  text-align: center;
  color: #6b6880;
  font-size: .85rem;
}
.footer-bottom a { color: #9b98ad; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-custom {
  --bs-breadcrumb-divider-color: #6b6880;
  font-size: .85rem;
}
.breadcrumb-custom a { color: var(--bb-muted); }
.breadcrumb-custom .active { color: var(--bb-secondary); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero { padding: 96px 0 96px; }
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2rem; }
}

@media (min-width: 992px) {
  .hero h1 { font-size: 3.3rem; }
}
