/* ===================================
   BRUTAL CASINO — Main Stylesheet
   Mobile-first · Colorful UX · Pro SEO
   =================================== */

/* --- CSS Custom Properties --- */
:root {
  --c-bg: #0a0a0f;
  --c-bg-alt: #0e0e16;
  --c-surface: #16161f;
  --c-surface-hover: #1e1e2a;
  --c-red: #e63946;
  --c-red-dark: #c0313d;
  --c-red-glow: rgba(230,57,70,.15);
  --c-gold: #d4a843;
  --c-gold-light: #f0cb5e;
  --c-gold-glow: rgba(212,168,67,.12);
  --c-purple: #8b5cf6;
  --c-purple-glow: rgba(139,92,246,.12);
  --c-green: #22c55e;
  --c-cyan: #06b6d4;
  --c-text: #d4d4dc;
  --c-text-muted: #8888a0;
  --c-border: #1f1f2e;
  --c-border-light: #2a2a3c;
  --c-white: #ffffff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1120px;
  --header-h: 60px;
  --section-py: 44px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-gold-light); }

/* --- Container --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* =======================================
   HEADER
   ======================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,15,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 12px;
}
.logo img { height: 30px; width: auto; }

#main-nav { display: none; }
#main-nav ul { list-style: none; display: flex; gap: 22px; padding: 0; }
#main-nav a {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: color .2s;
  position: relative;
}
#main-nav a:hover,
#main-nav a.active { color: var(--c-gold); }
#main-nav a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--c-gold); border-radius: 2px;
}

/* CTA Button */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--c-red) 0%, #d42e3b 100%);
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-radius: var(--radius);
  transition: transform .15s, box-shadow .2s;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--c-red-glow);
}
.cta-btn:hover {
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230,57,70,.3);
}
.cta-btn--lg { padding: 15px 40px; font-size: .95rem; border-radius: var(--radius-lg); }
.cta-btn--gold {
  background: linear-gradient(135deg, var(--c-gold) 0%, #c49a38 100%);
  box-shadow: 0 4px 20px var(--c-gold-glow);
  color: #0a0a0f;
}
.cta-btn--gold:hover {
  color: #0a0a0f;
  box-shadow: 0 6px 28px rgba(212,168,67,.35);
}
.cta-btn--outline {
  background: transparent;
  border: 2px solid var(--c-red);
  color: var(--c-red);
  box-shadow: none;
}
.cta-btn--outline:hover {
  background: var(--c-red);
  color: var(--c-white);
}

.header-inner > .cta-btn { display: none; font-size: .8rem; padding: 9px 18px; }

/* Burger */
#burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: var(--c-surface); border: 1px solid var(--c-border-light);
  border-radius: 8px; cursor: pointer; padding: 6px;
}
#burger span {
  display: block; width: 20px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
  margin: 0 auto;
}
#burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.active span:nth-child(2) { opacity: 0; }
#burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#burger.active { background: var(--c-red); border-color: var(--c-red); }
#burger.active span { background: var(--c-white); }

/* Mobile Menu */
#mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--c-bg);
  z-index: 99;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 20px 16px 100px;
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu ul { list-style: none; padding: 0; }
#mobile-menu li { margin-bottom: 0; }
#mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 0;
}
#mobile-menu a:hover { color: var(--c-gold); background: var(--c-surface); }
#mobile-menu .cta-btn {
  display: flex; margin-top: 20px; text-align: center;
  justify-content: center; padding: 14px;
}

/* Sticky Mobile CTA */
#sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
  padding: 10px 16px;
  background: rgba(10,10,15,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
}
#sticky-cta.visible { display: block; }
#sticky-cta .cta-btn { display: flex; width: 100%; justify-content: center; padding: 13px; font-size: .9rem; }

/* =======================================
   PROMO BANNER
   ======================================= */
#promo-banner {
  padding-top: var(--header-h);
  background: var(--c-bg);
  line-height: 0;
}
#promo-banner a { display: block; }
#promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================================
   HERO
   ======================================= */
#hero {
  padding: 32px 0 40px;
  background: linear-gradient(175deg, #0d0c18 0%, #120f1f 40%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
#hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--c-purple-glow) 0%, transparent 70%);
  pointer-events: none;
}
#hero h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--c-white);
  margin-bottom: 16px;
  position: relative;
}

.hero-lead {
  font-size: .9rem;
  color: var(--c-text-muted);
  line-height: 1.78;
  margin-bottom: 24px;
  max-width: 820px;
}
.hero-cta {
  margin-bottom: 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.info-card:nth-child(1)::before { background: var(--c-purple); }
.info-card:nth-child(2)::before { background: var(--c-green); }
.info-card:nth-child(3)::before { background: var(--c-gold); }
.info-card:nth-child(4)::before { background: var(--c-cyan); }

.info-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.info-card:nth-child(1) .info-val { color: var(--c-purple); }
.info-card:nth-child(2) .info-val { color: var(--c-green); }
.info-card:nth-child(3) .info-val { color: var(--c-gold); }
.info-card:nth-child(4) .info-val { color: var(--c-cyan); }

.info-label {
  font-size: .7rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* =======================================
   TABLE OF CONTENTS (TOC)
   ======================================= */
#toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-top: 28px;
}
#toc h3 {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
#toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  columns: 1;
}
#toc li {
  counter-increment: toc;
  margin-bottom: 0;
}
#toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: .82rem;
  color: var(--c-text-muted);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
#toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-purple);
  min-width: 22px;
}
#toc a:hover { background: var(--c-surface-hover); color: var(--c-gold); }

/* =======================================
   CONTENT SECTIONS
   ======================================= */
.content-section { padding: var(--section-py) 0; }
.content-section--alt { background: var(--c-bg-alt); }

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 20px;
  line-height: 1.3;
  position: relative;
  padding-left: 14px;
}
.content-section h2::before {
  content: '';
  position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(to bottom, var(--c-red), var(--c-purple));
}
.content-section p {
  margin-bottom: 14px;
  color: var(--c-text);
  font-size: .92rem;
}
.content-section p:last-child { margin-bottom: 0; }

/* Styled lists */
.content-section ul,
.content-section ol {
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}
.content-section ul li,
.content-section ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: .6em;
  font-size: .92rem;
  color: var(--c-text);
}
.content-section ul li::before {
  content: '';
  position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px;
  background: var(--c-purple);
  border-radius: 50%;
}
.content-section ol {
  counter-reset: steps;
}
.content-section ol li {
  counter-increment: steps;
}
.content-section ol li::before {
  content: counter(steps);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  background: var(--c-red);
  color: var(--c-white);
  font-size: .68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
}

.content-section strong { color: var(--c-white); }
.content-section em { color: var(--c-gold); font-style: normal; }

/* Section images */
.section-img {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--c-border);
}
.section-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================================
   TABLES — Card layout on mobile
   ======================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .82rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-scroll table { margin: 0; min-width: 580px; }

thead { background: linear-gradient(135deg, var(--c-surface) 0%, #1a1a28 100%); }
th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--c-gold);
  text-align: left;
  padding: 12px 14px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
  border-bottom: 2px solid var(--c-purple);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: .84rem;
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--c-surface-hover); }
tbody tr:last-child td { border-bottom: none; }

/* =======================================
   PROS / CONS
   ======================================= */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}
.pros, .cons {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.pros::before, .cons::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pros::before { background: var(--c-green); }
.cons::before { background: var(--c-red); }

.pros h3 {
  color: var(--c-green); font-family: var(--font-heading);
  font-size: .9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .3px;
}
.cons h3 {
  color: var(--c-red); font-family: var(--font-heading);
  font-size: .9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .3px;
}
.pros ul li::before { background: var(--c-green); }
.cons ul li::before { background: var(--c-red); }
.pros ul, .cons ul { margin-bottom: 0; }

/* =======================================
   CTA DIVIDERS (between sections)
   ======================================= */
.cta-divider {
  background: linear-gradient(135deg, #120f1f 0%, #160e20 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 28px 16px;
  text-align: center;
}
.cta-divider p {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.cta-divider .cta-btn { font-size: .85rem; }

/* =======================================
   FOOTER
   ======================================= */
#site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: 36px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-logo { height: 28px; width: auto; margin-bottom: 10px; }
.footer-desc { font-size: .8rem; color: var(--c-text-muted); line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .35em; }
.footer-col a {
  color: var(--c-text-muted); font-size: .8rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-age {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--c-red); margin-top: 14px; font-weight: 600;
  padding: 6px 12px; background: var(--c-red-glow); border-radius: 6px;
}
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 18px;
  text-align: center;
}
.footer-bottom p { font-size: .72rem; color: var(--c-text-muted); margin-bottom: 4px; }
.footer-disclaimer { opacity: .6; }

/* =======================================
   RESPONSIVE — TABLET (640+)
   ======================================= */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  :root { --section-py: 56px; }

  #hero { padding: 44px 0 56px; }
  #hero h1 { font-size: 1.8rem; }
  .hero-lead { font-size: .95rem; }

  .info-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .info-val { font-size: 1.5rem; }

  #toc ol { columns: 2; column-gap: 12px; }

  .content-section h2 { font-size: 1.4rem; }

  .pros-cons { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* =======================================
   RESPONSIVE — DESKTOP (1024+)
   ======================================= */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  :root { --section-py: 70px; --header-h: 64px; }

  #main-nav { display: block; }
  .header-inner > .cta-btn { display: inline-flex; }
  #burger { display: none; }

  .logo img { height: 34px; }

  #hero { padding: 56px 0 70px; }
  #hero h1 { font-size: 2.4rem; max-width: 860px; }
  .hero-lead { font-size: 1.02rem; }

  .info-card { padding: 22px 14px; }
  .info-val { font-size: 1.7rem; }

  .content-section h2 { font-size: 1.65rem; padding-left: 18px; }
  .content-section h2::before { width: 5px; }
  .content-section p { font-size: .95rem; }

  table { font-size: .88rem; }
  th { padding: 14px 18px; font-size: .78rem; }
  td { padding: 12px 18px; font-size: .88rem; }

  #toc { padding: 28px 30px; }
  #toc ol { columns: 2; column-gap: 20px; }

  .section-img { border-radius: var(--radius-lg); }
  .section-img img { border-radius: var(--radius-lg); }

  .cta-divider { padding: 36px 16px; }
  .cta-divider p { font-size: 1.05rem; }

  #sticky-cta { display: none !important; }
}

/* =======================================
   WIDE DESKTOP (1280+)
   ======================================= */
@media (min-width: 1280px) {
  #hero h1 { font-size: 2.7rem; }
  .content-section h2 { font-size: 1.8rem; }
}

/* --- Focus states --- */
a:focus-visible, .cta-btn:focus-visible, #burger:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* --- Selection --- */
::selection { background: var(--c-red); color: var(--c-white); }

/* --- Print --- */
@media print {
  #site-header, #mobile-menu, .cta-btn, #burger, #sticky-cta, .cta-divider { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .content-section--alt { background: #f5f5f5; }
  .content-section h2::before { background: #333; }
}
