/* ============================================================
   QWCASINO TEMPLATE — css/app.css
   Colors: bg #131313 · gold #FFB700 · dark-brown #42210a
   ============================================================ */

:root {
  --bg:           #131313;
  --bg-dark:      #0D0D0D;
  --bg-card:      #1a1a1a;
  --bg-card2:     #222222;
  --bg-input:     #2c2410;
  --gold:         #FFB700;
  --gold-dark:    #D99A00;
  --gold-light:   #FFC533;
  --gold-dim:     rgba(255,183,0,0.15);
  --brown:        #42210A;
  --white:        #ffffff;
  --text:         #e0d8cc;
  --text-muted:   #888070;
  --border:       rgba(255,255,255,0.06);
  --border-g:     rgba(255,183,0,0.2);
  --blue-badge:   #5b6cf5;
  --win-green:    #22c474;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-card:  8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --font:         'Inter', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-g);
  box-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}
.logo__gw {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
  font-style: italic;
}
.logo__casino-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 1px;
  vertical-align: middle;
}
.logo__casino {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.header-nav__link .nav-icon { font-size: 18px; }
.header-nav__link:hover,
.header-nav__link.active { color: var(--white); background: rgba(255,255,255,0.05); }
.header-nav__link.active .nav-icon { filter: drop-shadow(0 0 4px var(--gold)); }

/* Auth buttons */
.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-login {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s;
}
.btn-login:hover { border-color: var(--gold); color: var(--gold); }
.btn-join {
  background: var(--gold);
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 24px;
  border-radius: 50px;
  transition: background 0.15s, transform 0.15s;
}
.btn-join:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO BANNER ────────────────────────────────────────────── */
.hero-banner {
  background:
    linear-gradient(to right, rgba(13,13,13,0.95) 40%, rgba(13,13,13,0.6) 70%, rgba(13,13,13,0.1) 100%),
    url('../images/banner.jpg') center right / cover no-repeat;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-g);
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-banner__content { max-width: 580px; }
.hero-banner__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.hero-banner__title {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.hero-banner__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.hero-banner__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--gold);
  color: var(--brown);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 50px;
  transition: background 0.15s, transform 0.15s;
}
.hero-btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-btn-secondary {
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,183,0,0.35);
  transition: border-color 0.15s;
}
.hero-btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── BONUS SECTION ──────────────────────────────────────────── */
.bonus-section {
  background: var(--bg-dark);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-g);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}
.bonus-card:hover {
  border-color: rgba(255,183,0,0.45);
  box-shadow: 0 0 24px rgba(255,183,0,0.1);
}
.bonus-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.bonus-card__amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.bonus-card__amount strong {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}
.bonus-card__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bonus-card__btn {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 50px;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
  margin-top: auto;
  align-self: flex-start;
}
.bonus-card__btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── SLOTS SECTION ──────────────────────────────────────────── */
.slots-section {
  padding: 32px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.slots-section--alt { background: var(--bg-dark); }
.slots-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.slots-section__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.slots-section__title .sec-icon { font-size: 20px; }
.slots-section__viewall {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--border-g);
  padding: 6px 16px;
  border-radius: 50px;
  transition: background 0.15s, color 0.15s;
}
.slots-section__viewall:hover { background: var(--gold); color: var(--brown); }

/* Popular grid: 5 per row x 2 rows */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.slot-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card2);
  display: block;
  cursor: pointer;
}
.slot-card__thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.slot-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s, filter 0.28s;
}
.slot-card__label {
  padding: 8px 10px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-card2);
}
.slot-card__play {
  position: absolute;
  inset: 0 0 32px 0;
  background: rgba(0,0,0,0.72);
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.slot-card:hover .slot-card__thumb img { transform: scale(1.05); filter: brightness(0.6); }
.slot-card:hover .slot-card__play { opacity: 1; }

/* ── TOP 20 SECTION ─────────────────────────────────────────── */
.top20-section {
  padding: 32px 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.top20-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.top20-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--bg-card2);
  cursor: pointer;
}
.top20-card__thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.top20-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s, filter 0.28s;
}
.top20-card__num {
  position: absolute;
  bottom: -6px;
  left: 8px;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  opacity: 0.9;
  font-style: italic;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 2;
  -webkit-text-stroke: 2px rgba(0,0,0,0.4);
}
.top20-card__play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.top20-card:hover .top20-card__thumb img { transform: scale(1.05); filter: brightness(0.6); }
.top20-card:hover .top20-card__play { opacity: 1; }

/* ── ARTICLE SECTION ────────────────────────────────────────── */
.article-section {
  padding: 52px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.article-section__inner { max-width: 1200px; }
.article-section__inner h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.25;
}
.article-section__inner h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.article-section__inner h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin: 24px 0 8px;
}
.article-section__inner p  { margin-bottom: 14px; color: var(--text); line-height: 1.8; }
.article-section__inner ul,
.article-section__inner ol { margin: 0 0 16px 20px; }
.article-section__inner li { margin-bottom: 6px; color: var(--text); }
.article-section__inner a  { color: var(--gold); text-decoration: underline; }

/* Tables inside article */
.article-section__inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-section__inner table th {
  background: var(--bg-input);
  color: var(--gold);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-g);
}
.article-section__inner table td {
  padding: 11px 16px;
  color: var(--text);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.article-section__inner table tbody tr:nth-child(even) td { background: var(--bg-card2); }
.article-section__inner table tbody tr:hover td { background: var(--bg-input); }
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg-card); }
.data-table th {
  background: var(--bg-input);
  color: var(--gold);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-g);
}
.data-table tbody tr { background: var(--bg-card); }
.data-table tbody tr:nth-child(even) { background: var(--bg-card2); }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-input) !important; color: var(--white); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  padding: 48px 0 64px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.faq-section__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 26px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-g); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 17px 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.faq-question__title { font-size: 15px; font-weight: 600; color: var(--white); margin: 0; }
.faq-question__icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-question__icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; padding: 0 20px; }
.faq-answer.is-open { max-height: 600px; padding: 0 20px 18px; }
.faq-answer p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── BETS TABLE SECTION ─────────────────────────────────────── */
.bets-section {
  padding: 32px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.bets-tabs { display: flex; border-bottom: 2px solid var(--border); }
.bets-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bets-tab.is-active, .bets-tab:hover { color: var(--white); border-bottom-color: var(--gold); }
.bets-switches { display: flex; gap: 8px; }
.bets-switch {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.bets-switch.is-active { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.bets-switch:hover:not(.is-active) { border-color: var(--gold); color: var(--gold); }

.bets-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.bets-table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--bg-card); }
.bets-table thead th {
  background: var(--bg-card2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.bets-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
.bets-table tbody tr:last-child { border-bottom: none; }
.bets-table tbody tr:hover { background: var(--bg-input); }
.bets-table td { padding: 10px 16px; font-size: 14px; color: var(--text); white-space: nowrap; }
.bets-table .td-game { display: flex; align-items: center; gap: 10px; font-weight: 600; max-width: 200px; }
.bets-table .td-game__thumb { width: 32px; height: 32px; border-radius: 6px; background: var(--bg-input); object-fit: cover; flex-shrink: 0; }
.td-game__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; display: block; }
.bets-table .td-time { color: var(--text-muted); font-size: 13px; }
.badge-bet { display: inline-block; background: var(--bg-input); color: var(--text); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge-mult { display: inline-block; background: var(--blue-badge); color: var(--white); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.td-payout { color: var(--win-green); font-weight: 700; font-size: 14px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.4);
  padding: 52px 0 28px;
  border-top: 2px solid var(--gold-dark);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.3); max-width: 240px; }
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer__warning { max-width: 640px; line-height: 1.6; }
.footer__copy { white-space: nowrap; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
  .top20-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .burger     { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 2px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
    border-bottom: 1px solid var(--border-g);
  }
  .header-nav__link { flex-direction: row; width: 100%; padding: 12px 14px; gap: 10px; }
  .header-nav.is-open { display: flex; }
  .header-actions { display: none; }
  .header__inner  { position: relative; }

  .bonus-grid  { grid-template-columns: 1fr; }
  .slots-grid  { grid-template-columns: repeat(3, 1fr); }
  .top20-grid  { grid-template-columns: repeat(2, 1fr); }
  .bets-header { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .hero-banner {
    background:
      linear-gradient(rgba(13,13,13,0.88), rgba(13,13,13,0.88)),
      url('../images/banner.jpg') center / cover no-repeat;
    text-align: center;
    padding: 48px 0;
    min-height: unset;
  }
  .hero-banner__content { max-width: 100%; }
  .hero-banner__btns { justify-content: center; }
}

@media (max-width: 540px) {
  .slots-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .top20-grid    { grid-template-columns: repeat(2, 1fr); }
  .top20-card__num { font-size: 64px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .bets-tabs     { overflow-x: auto; }
}
