/* ============================================================
   Wilder Casino — custom styles (on top of Bootstrap 5)
   Mobile-first
   ============================================================ */

:root {
  --wild-blue: #1975ef;
  --wild-blue-dark: #0d5fd0;
  --wild-dark: #2b2d42;
  --wild-green: #27be8d;
  --wild-red: #ef233c;
  --wild-gold: #ffc207;
  --wild-bronze: #d28c47;
  --wild-diamond: #71c4f1;
  --wild-platinum: #ae65ec;
  --wild-silver: #cfd4d7;
  --wild-light: #eef4f6;
  --wild-bg: #edf2f4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--wild-bg);
  color: var(--wild-dark);
  overflow-x: clip;
}

a {
  color: var(--wild-blue);
}
a:hover {
  color: var(--wild-blue-dark);
}

/* ---------- Typography helpers ---------- */
.section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--wild-dark);
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
}
.btn-wild {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wild-blue);
  --bs-btn-border-color: var(--wild-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wild-blue-dark);
  --bs-btn-hover-border-color: var(--wild-blue-dark);
  --bs-btn-active-bg: var(--wild-blue-dark);
  --bs-btn-active-border-color: var(--wild-blue-dark);
}
.btn-gold {
  --bs-btn-color: #1c1c1c;
  --bs-btn-bg: var(--wild-gold);
  --bs-btn-border-color: var(--wild-gold);
  --bs-btn-hover-color: #1c1c1c;
  --bs-btn-hover-bg: #f0b400;
  --bs-btn-hover-border-color: #f0b400;
}
.btn-telegram {
  --bs-btn-color: #fff;
  --bs-btn-bg: #229ed9;
  --bs-btn-border-color: #229ed9;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1b8abf;
  --bs-btn-hover-border-color: #1b8abf;
}
.btn-outline-wild {
  --bs-btn-color: var(--wild-blue);
  --bs-btn-border-color: var(--wild-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wild-blue);
  --bs-btn-hover-border-color: var(--wild-blue);
  --bs-btn-active-bg: var(--wild-blue);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: relative;
  z-index: 1030;
  background: #fff;
}
.site-header .navbar {
  box-shadow: 0 2px 14px rgba(43, 45, 66, 0.08);
}
/* Sticky top menu — desktop only */
@media (min-width: 992px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.brand-text .w {
  color: var(--wild-blue);
}
.brand-text .c {
  color: var(--wild-dark);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--wild-dark);
  padding: 0.5rem 0.9rem;
}
.navbar-nav .nav-link:hover {
  color: var(--wild-blue);
}
.navbar-nav .nav-link.active {
  color: var(--wild-blue);
  font-weight: 600;
}
.navbar .btn {
  white-space: nowrap;
}
@media (min-width: 992px) {
  .navbar-brand {
    margin-right: 1.5rem;
  }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #6ab1ea;
  background-image: url("../img/leBanner.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 39, 82, 0.92) 0%,
    rgba(13, 39, 82, 0.62) 45%,
    rgba(13, 39, 82, 0.18) 100%
  );
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.hero .sub-title {
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 500;
  color: var(--wild-gold);
  margin-bottom: 1.5rem;
}
.hero .lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}
@media (min-width: 768px) {
  .hero {
    min-height: 560px;
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #e6f0ff 0%, #eef4f6 60%, #eef4f6 100%);
  padding: 3rem 0;
  border-bottom: 1px solid #e3ebf0;
}
.page-hero h1 {
  font-weight: 800;
  color: var(--wild-dark);
  margin-bottom: 0.5rem;
}
.page-hero .lead {
  color: #5b6570;
  max-width: 760px;
  margin-bottom: 0;
}

/* ---------- Cards ---------- */
.card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(43, 45, 66, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(43, 45, 66, 0.13);
}

/* ---------- Info / feature list ---------- */
.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.info-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--wild-blue);
}

/* ---------- Steps ---------- */
.step-card {
  height: 100%;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--wild-blue);
}

/* ---------- Bonus table ---------- */
.bonus-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}
.table {
  margin: 0;
  --bs-table-bg: transparent;
}
.table thead th {
  background: var(--wild-dark);
  color: #fff;
  font-weight: 600;
  border: 0;
  white-space: nowrap;
}
.table tbody td {
  vertical-align: middle;
  border-color: #e9eef1;
}
.table tbody tr:nth-child(even) {
  background: #f7fafb;
}

/* ---------- Game gallery ---------- */
.game-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe8ec;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 16px rgba(43, 45, 66, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card .game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(13, 39, 82, 0.92) 100%);
  color: #fff;
}
.game-card .game-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.game-card .play-pill {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1c1c1c;
  background: var(--wild-gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 45, 66, 0.18);
}
.game-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Promo code ---------- */
.promo-box {
  background: linear-gradient(135deg, var(--wild-blue) 0%, #0d5fd0 100%);
  color: #fff;
  border-radius: 20px;
}
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.6rem;
  color: var(--wild-gold);
  background: rgba(0, 0, 0, 0.22);
  border: 2px dashed var(--wild-gold);
  padding: 0.6rem 1.4rem;
  border-radius: 14px;
}

/* ---------- App section ---------- */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dbe3e7;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--wild-dark);
  font-weight: 600;
  text-decoration: none;
}
.app-badge:hover {
  color: var(--wild-blue);
  border-color: var(--wild-blue);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--wild-dark);
  color: #c9d1d8;
}
.footer a {
  color: #c9d1d8;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer .footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer .footer-link {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.92rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* ---------- 18+ badge ---------- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wild-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 3px solid #fff;
}

/* ---------- Stats strip ---------- */
.stat-box {
  text-align: center;
  padding: 1.25rem 0.75rem;
}
.stat-value {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--wild-blue);
}
.stat-label {
  color: #6b7280;
  font-size: 0.92rem;
}

/* ---------- Sticky bottom bonus bar (mobile) / card (desktop) ---------- */
.bonus-popup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(13, 39, 82, 0.22);
  border-top: 1px solid #e9eef1;
}
.bonus-popup__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.bonus-popup__icon {
  font-size: 26px;
  line-height: 1;
}
.bonus-popup__text {
  flex: 1;
  min-width: 0;
}
.bonus-popup__title {
  font-weight: 700;
  color: var(--wild-dark);
  font-size: 0.95rem;
  line-height: 1.2;
}
.bonus-popup__desc {
  color: #6b7280;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bonus-popup__cta {
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 76px;
  }
}

@media (min-width: 768px) {
  .bonus-popup {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 460px;
    border-radius: 16px;
    border: 1px solid #e9eef1;
    border-top: 1px solid #e9eef1;
    box-shadow: 0 12px 40px rgba(13, 39, 82, 0.28);
  }
  .bonus-popup__inner {
    gap: 12px;
    padding: 14px 16px;
  }
  .bonus-popup__icon {
    font-size: 34px;
  }
  .bonus-popup__title {
    font-size: 1rem;
  }
  .bonus-popup__desc {
    font-size: 0.85rem;
    white-space: normal;
  }
}
