/* ============================================================
   USDT Casinos — base.css
   Design tokens, reset, typography, shared utilities
   ============================================================ */

:root {
  /* Brand palette */
  --tether: #26A17B;
  --tether-dark: #1B7A5C;
  --tether-deep: #0E5B43;
  --tether-soft: #E4F4EE;
  --tether-mist: #F2FAF7;
  --gold: #F5B544;
  --gold-soft: #FDF3E0;
  --canada: #D80621;

  /* Dark crypto surfaces */
  --ink-900: #071410;
  --ink-850: #0A1C16;
  --ink-800: #0D241C;
  --ink-700: #12352A;

  /* Light content surfaces */
  --bg: #F6F9F8;
  --surface: #FFFFFF;
  --line: #E2ECE8;
  --line-strong: #C9DCD4;

  /* Text */
  --text: #12251E;
  --text-soft: #4A635A;
  --text-mute: #7A9188;
  --text-inv: #EAF6F1;
  --text-inv-soft: #A8C9BD;

  /* Effects */
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(10, 40, 30, .06), 0 2px 8px rgba(10, 40, 30, .05);
  --shadow-m: 0 4px 14px rgba(10, 40, 30, .08), 0 12px 32px rgba(10, 40, 30, .08);
  --shadow-l: 0 10px 30px rgba(8, 35, 26, .16), 0 24px 64px rgba(8, 35, 26, .14);
  --glow-tether: 0 0 0 1px rgba(38, 161, 123, .35), 0 8px 32px rgba(38, 161, 123, .25);

  /* Type */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--tether-dark); text-decoration: none; }
a:hover { color: var(--tether); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; color: var(--text); }
:focus-visible { outline: 2px solid var(--tether); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(38, 161, 123, .22), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(38, 161, 123, .14), transparent 55%),
    linear-gradient(160deg, var(--ink-900), var(--ink-850) 55%, #081A14);
  color: var(--text-inv);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-inv); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tether-dark);
  background: var(--tether-soft);
  border: 1px solid rgba(38, 161, 123, .25);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.section--dark .section-eyebrow {
  color: #7FE0BC; background: rgba(38, 161, 123, .12); border-color: rgba(38, 161, 123, .35);
}
.section-title { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.02em; }
.section-lead { margin-top: 12px; color: var(--text-soft); font-size: 17px; }
.section--dark .section-lead { color: var(--text-inv-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap; text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, #2EBF92, var(--tether) 55%, var(--tether-dark));
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(38, 161, 123, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(38, 161, 123, .45); }
.btn--ghost {
  border: 1.5px solid var(--line-strong); color: var(--text) !important; background: var(--surface);
}
.btn--ghost:hover { border-color: var(--tether); color: var(--tether-dark) !important; transform: translateY(-2px); }
.btn--ghost-light {
  border: 1.5px solid rgba(234, 246, 241, .35); color: var(--text-inv) !important; background: rgba(255,255,255,.04);
}
.btn--ghost-light:hover { border-color: #7FE0BC; color: #7FE0BC !important; transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, #FFD98A, var(--gold) 60%, #E29A1F);
  color: #3A2703 !important;
  box-shadow: 0 6px 18px rgba(245, 181, 68, .35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 181, 68, .45); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; line-height: 1;
}
.badge--tether { background: var(--tether-soft); color: var(--tether-deep); border: 1px solid rgba(38,161,123,.3); }
.badge--gold { background: var(--gold-soft); color: #8A5A00; border: 1px solid rgba(245,181,68,.45); }
.badge--canada { background: #FDE7EA; color: var(--canada); border: 1px solid rgba(216,6,33,.25); }
.badge--dark { background: rgba(38,161,123,.14); color: #7FE0BC; border: 1px solid rgba(38,161,123,.35); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 18px 0; font-size: 13.5px; color: var(--text-mute); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: var(--line-strong); font-weight: 600; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--tether-dark); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Tables ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}
.table-responsive table { width: 100%; min-width: 560px; }
table { border-collapse: collapse; font-size: 15px; background: var(--surface); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-head); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tether-deep); background: var(--tether-mist);
}
tbody tr:hover { background: var(--tether-mist); }
table caption { caption-side: top; text-align: left; font-weight: 600; margin-bottom: 8px; }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: clamp(19px, 2.3vw, 24px); margin-top: 34px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h4 { font-size: 18px; margin-top: 26px; }
.prose p { color: var(--text-soft); }
.prose p strong, .prose li strong { color: var(--text); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(38,161,123,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--tether); }
.prose ul, .prose ol { color: var(--text-soft); }
.prose img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-m); margin-block: 10px;
}
.prose blockquote {
  border-left: 4px solid var(--tether);
  background: var(--tether-mist);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }

/* Callout */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--tether-mist);
  border: 1px solid rgba(38, 161, 123, .3);
  border-left: 4px solid var(--tether);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-soft);
}
.callout__icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--tether-dark); }
.callout p { margin: 0; }
.callout--gold { background: var(--gold-soft); border-color: rgba(245,181,68,.5); border-left-color: var(--gold); }
.callout--gold .callout__icon { color: #B57B0A; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open { border-color: rgba(38, 161, 123, .45); box-shadow: var(--shadow-s); }
.faq-item__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--text);
}
.faq-item__icon {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tether-soft); color: var(--tether-deep);
  transition: transform .25s ease, background .25s ease;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); background: var(--tether); color: #fff; }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-item__a-inner { padding: 0 20px 20px; color: var(--text-soft); }
.faq-item__a-inner p + p { margin-top: 10px; }

/* ---------- Author box ---------- */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 26px; box-shadow: var(--shadow-s);
}
.author-box__photo {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--tether-soft); box-shadow: 0 0 0 1px rgba(38,161,123,.35);
}
.author-box__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.author-box__name { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-top: 2px; }
.author-box__name a { color: var(--text); }
.author-box__name a:hover { color: var(--tether-dark); }
.author-box__role { color: var(--text-soft); font-size: 14.5px; margin-top: 2px; }
.author-box__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.author-box__bio { margin-top: 12px; color: var(--text-soft); font-size: 15px; }
.author-box__more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14.5px; }

/* ---------- Responsible gambling strip ---------- */
.rg-strip {
  background: linear-gradient(135deg, var(--ink-900), var(--ink-800));
  border: 1px solid rgba(38, 161, 123, .25);
  border-radius: var(--radius-l);
  padding: clamp(22px, 4vw, 34px);
  color: var(--text-inv-soft);
  display: flex; gap: 20px; align-items: flex-start;
}
.rg-strip__badge {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(216, 6, 33, .14); border: 2px solid var(--canada);
  color: #FF6B7C; font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.rg-strip h2, .rg-strip h3 { color: var(--text-inv); font-size: 20px; margin-bottom: 8px; }
.rg-strip p { font-size: 14.5px; }
.rg-strip a { color: #7FE0BC; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--tether); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

@media (max-width: 640px) {
  .author-box { flex-direction: column; padding: 20px; }
  .rg-strip { flex-direction: column; }
}
