/* ==========================================================================
   Bet7k Login (bet7klogin.org) — theme layer on top of Bootstrap 5
   Reproduces the original dark gold/green design tokens (ported from the
   Next.js app/globals.css). Load AFTER bootstrap.min.css so these rules win.
   ========================================================================== */

:root {
  --bg: #0a0e17;
  --bg-2: #0d1320;
  --surface: #121a2b;
  --surface-2: #161f33;
  --surface-3: #1d2842;
  --border: #243049;
  --text: #eef2fb;
  --muted: #9aa6c0;
  --gold: #ffc629;
  --gold-2: #ffb000;
  --orange: #ff7a1a;
  --green: #19c37d;
  --green-2: #12a867;
  --red: #ff5470;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Bootstrap overrides so Bootstrap components inherit the theme */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font);
  --bs-link-color: var(--gold);
  --bs-link-hover-color: var(--gold-2);
  --bs-border-color: var(--border);
  --bs-emphasis-color: #fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--gold);
  background: rgba(255, 198, 41, .1); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 800;
  font-size: 1rem; cursor: pointer; border: 0; text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-2)); color: #04130c; }
.btn-primary:hover { color: #04130c; }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #2a1c00; }
.btn-gold:hover { color: #2a1c00; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.08rem; padding: 14px 30px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(10, 14, 23, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo b { color: var(--gold); }
.logo .seven { color: var(--green); }
.main-nav { display: none; margin-left: 8px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px;
  color: var(--text); font-weight: 600; font-size: .95rem; border-radius: 8px;
}
.main-nav > ul > li > a:hover { background: var(--surface); text-decoration: none; color: var(--gold); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow); list-style: none; margin: 6px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.submenu a:hover { background: var(--surface-3); color: var(--gold); text-decoration: none; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.hide-sm { display: none; }
.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); cursor: pointer;
}
.menu-toggle:focus { box-shadow: none; }

/* ---------- Mobile nav (Bootstrap offcanvas themed) ---------- */
.offcanvas.mobile-nav { background: var(--bg-2); color: var(--text); border-left: 1px solid var(--border); width: 300px; }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--border); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav a { display: block; padding: 12px 16px; color: var(--text); font-weight: 600; border-radius: 8px; }
.mobile-nav .sub a { padding-left: 32px; color: var(--muted); font-weight: 500; font-size: .94rem; }
.mobile-nav a:hover { background: var(--surface); text-decoration: none; color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 80% -10%, rgba(255, 122, 26, .18), transparent 60%),
    radial-gradient(700px 360px at 10% 0%, rgba(25, 195, 125, .14), transparent 55%),
    linear-gradient(180deg, #0c1426, var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; gap: 28px; padding: 40px 0 48px; align-items: center; }
.hero h1 span { color: var(--gold); }
.hero .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 1.5rem; color: var(--gold); }
.stat span { color: var(--muted); font-size: .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 6px; }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 198, 41, .12); color: var(--gold); margin-bottom: 12px; }

/* Game tiles (image placeholders) */
.game-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.game-thumb {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center;
  padding: 12px; color: #0a0e17; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}
.game-thumb.alt { background: linear-gradient(135deg, #7c5cff, #ff5fa2); color: #fff; }
.game-thumb.alt2 { background: linear-gradient(135deg, #19c37d, #0ea5e9); color: #04130c; }
.game-thumb.alt3 { background: linear-gradient(135deg, #ff7a1a, #ff3d6e); color: #fff; }
.ph-note {
  position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: .62rem; font-weight: 600;
  background: rgba(0, 0, 0, .55); color: #fff; padding: 4px 6px; border-radius: 6px; line-height: 1.3;
}
.game-card .meta { padding: 12px 14px; }
.game-card .meta b { display: block; font-size: .98rem; }
.game-card .meta span { color: var(--muted); font-size: .82rem; }

/* On-page gaming element: transparent cutout that floats over the page bg */
.og-img {
  display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .55))
          drop-shadow(0 0 42px rgba(255, 198, 41, .18));
}
.og-figure {
  margin: 6px 0 20px; padding: 12px; display: flex; justify-content: center; align-items: center;
  background: radial-gradient(closest-side, rgba(255, 198, 41, .12), rgba(25, 195, 125, .06) 58%, transparent 76%);
}
.og-figure .og-img { max-width: 440px; }
.hero .og-img { max-width: 520px; }
.og-figure figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }

/* Generic image placeholder block */
.img-ph {
  position: relative; border-radius: var(--radius); border: 1px dashed #34406099;
  background:
    repeating-linear-gradient(45deg, #141d30, #141d30 12px, #111a2b 12px, #111a2b 24px);
  display: grid; place-items: center; text-align: center; padding: 20px; min-height: 200px; color: var(--muted);
}
.img-ph .badge {
  position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--gold); color: #2a1c00; padding: 3px 8px; border-radius: 6px;
}
.img-ph p { margin: 0; font-size: .86rem; max-width: 40ch; }

/* Feature list with check icons */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: 0 0 22px; margin-top: 3px; color: var(--green); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 18px 0; }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .94rem; }
table.data caption { text-align: left; padding: 12px 14px; color: var(--muted); font-size: .85rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--surface-3); color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li::after { content: "\203A"; color: #46537399; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Article layout + TOC ---------- */
.article-head { padding: 20px 0 6px; }
.article-layout { display: grid; gap: 26px; padding-bottom: 30px; }
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.toc h2 { font-size: 1rem; margin: 0 0 10px; color: var(--gold); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.toc a { color: var(--muted); font-size: .92rem; }
.toc a:hover { color: var(--gold); }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 84px; }
.prose h3 { margin-top: 1.3em; scroll-margin-top: 84px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--gold);
  background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted);
}

/* ---------- FAQ (Bootstrap accordion themed) ---------- */
.faq { display: grid; gap: 10px; }
.faq .accordion-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq .accordion-header { margin: 0; }
.faq .accordion-button {
  background: var(--surface); color: var(--text); font-weight: 700; padding: 14px 16px;
  box-shadow: none; font-size: 1rem;
}
.faq .accordion-button:not(.collapsed) { background: var(--surface); color: var(--text); box-shadow: inset 0 -1px 0 var(--border); }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--border); }
.faq .accordion-button::after {
  width: 1.1rem; height: 1.1rem; background-size: 1.1rem;
  filter: invert(72%) sepia(72%) saturate(700%) hue-rotate(358deg) brightness(103%);
}
.faq .accordion-body { padding: 12px 16px 16px; color: var(--muted); }

/* ---------- Callouts / CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(255, 198, 41, .14), rgba(25, 195, 125, .1));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center;
}
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: .92rem; margin: 16px 0;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: .85rem; color: var(--muted); }
.pill b { color: var(--gold); }

/* Provider / payment logos strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logo-chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-weight: 700; color: var(--muted); font-size: .9rem; min-width: 96px; text-align: center;
}

.section-title { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.section-title p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-col h4 { font-size: .95rem; color: var(--gold); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 20px; color: var(--muted); font-size: .82rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.age-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: .9rem; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--gold); color: #2a1c00;
  padding: .5rem 1rem; border-radius: .5rem; font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
@media (min-width: 860px) {
  .section { padding: 60px 0; }
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .hide-sm { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; padding: 56px 0 64px; }
  .article-layout { grid-template-columns: 270px 1fr; align-items: start; }
  .toc { position: sticky; top: 84px; }
}

/* ===== Mobile responsiveness fixes ===== */
body { overflow-x: hidden; overflow-x: clip; }
img, svg, video, iframe, canvas { max-width: 100%; }
@media (max-width: 768px) {
  h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }
  .hero, .home-hero, .hero-grid, .page-hero-grid, .intro-grid, .split-section, .content-band { grid-template-columns: 1fr !important; }
  table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .table-wrap, .table-scroll, .table-responsive, .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}
