/*
Theme Name: 20bet Editorial Brasil
Theme URI: https://20bet.bond/
Author: 20bet Editorial
Description: Tema editorial independente em português do Brasil para conteúdo sobre a 20bet.
Version: 1.0.1
Text Domain: twentybet-editorial
*/

:root {
  --bg: #090f1f;
  --surface: #0d1527;
  --surface-2: #121a2c;
  --ink: #ffffff;
  --muted: #d2d5dd;
  --line: #26334c;
  --gold: #f3bf37;
  --green: #16b35c;
  --focus: #ffe47a;
  --danger: #ff806f;
  --content: 920px;
  --wide: 1150px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--gold); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #ffe08a; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
p, li { color: var(--muted); }
h1, h2, h3 { color: var(--ink); line-height: 1.14; text-wrap: balance; }
h1 { margin: 0 auto; max-width: 940px; font-size: clamp(2.7rem, 5vw, 4rem); letter-spacing: -.045em; text-align: center; }
h2 { margin: 0 0 1.15rem; font-size: clamp(1.85rem, 3.5vw, 2.65rem); letter-spacing: -.025em; }
h3 { margin: 2rem 0 .7rem; font-size: clamp(1.25rem, 2vw, 1.55rem); }
strong { color: var(--ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 26, 44, .97);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 36px);
  gap: clamp(26px, 4vw, 62px);
}
.site-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-brand__logo { width: auto; height: 36px; max-width: 160px; object-fit: contain; }
.primary-nav ul { display: flex; justify-content: flex-end; align-items: center; gap: clamp(18px, 2.5vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--gold); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

.site-main { min-height: 60vh; }
.page-shell { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 42px) 72px; }
.article-head { max-width: var(--wide); margin: 0 auto; padding: clamp(50px, 7vw, 82px) clamp(20px, 4vw, 42px) 28px; }
.article-head .lead { max-width: 800px; margin: 1.6rem auto 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.2rem); text-align: center; }
.article-meta { display: flex; justify-content: center; gap: 12px; margin-top: 1.25rem; color: #aeb6c7; font-size: .82rem; }
.article-body { max-width: var(--content); margin: 0 auto; }
.article-body > section { scroll-margin-top: calc(var(--header-h) + 24px); padding: 52px 0; border-top: 1px solid var(--line); }
.article-body > section:first-child { border-top: 0; }
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.35rem; }
.article-body li + li { margin-top: .62rem; }
.article-body blockquote, .note {
  margin: 1.5rem 0;
  padding: 18px 22px;
  border: 1px solid var(--gold);
  border-left-width: 4px;
  border-radius: 6px;
  background: rgba(243, 191, 55, .06);
}
.article-figure { margin: 2rem auto 2.3rem; }
.article-figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.article-figure figcaption { margin-top: .65rem; color: #abb3c2; font-size: .82rem; }

.table-wrap { width: 100%; margin: 1.7rem 0 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink); font-size: .83rem; letter-spacing: .02em; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: steps; margin: 1.7rem 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 52px; padding: 0 0 24px 62px; }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 900; }
.steps li::after { content: ""; position: absolute; top: 43px; bottom: 3px; left: 20px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }

.faq { margin: 1.4rem 0; }
.faq details { border-top: 1px solid var(--line); background: var(--surface); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 52px 18px 18px; color: var(--ink); font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 14px; right: 18px; color: var(--gold); font-size: 1.5rem; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

.next-read { margin-top: 2rem; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 5px; background: var(--green); color: #fff; font-weight: 900; text-decoration: none; }
.text-button:hover { background: #12964d; color: #fff; }

.correction-form { margin-top: 1.5rem; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; margin-bottom: .4rem; color: var(--ink); font-weight: 750; }
.form-row input, .form-row textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #405070; border-radius: 5px; background: #091122; color: #fff; font: inherit; }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-help { color: #aeb6c7; font-size: .84rem; }
.form-message { padding: 12px 14px; border: 1px solid var(--gold); border-radius: 5px; }
.form-message.success { border-color: var(--green); }

.site-footer { border-top: 1px solid var(--line); background: #07101f; }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 42px clamp(20px, 4vw, 42px); }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1fr) 1.2fr; gap: 40px; align-items: start; }
.footer-brand { color: #fff; font-size: 1.35rem; font-weight: 900; }
.footer-brand span { color: var(--gold); }
.footer-note { max-width: 560px; margin: .65rem 0 0; color: #abb3c2; font-size: .9rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #e3e6ec; text-decoration: none; }
.footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: #8f99ab; font-size: .8rem; }

.not-found { max-width: 720px; margin: 0 auto; padding: 90px 20px; text-align: center; }
.not-found p { font-size: 1.1rem; }

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 0 18px; gap: 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .primary-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; max-height: calc(100vh - 64px); overflow-y: auto; padding: 16px 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .primary-nav a { min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: .82rem; }
  .article-head { padding-top: 48px; }
  h1 { font-size: clamp(1.95rem, 8.8vw, 2.3rem); }
  .article-head .lead { text-align: left; }
  .article-body > section { padding: 34px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .page-shell, .article-head { padding-left: 16px; padding-right: 16px; }
  .primary-nav { padding-left: 14px; padding-right: 14px; }
  .primary-nav ul { gap: 6px; }
  .primary-nav a { padding: 7px 8px; font-size: .76rem; }
  .footer-inner { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
