/*
Theme Name: 3355bet Editorial
Theme URI: https://3355bet.bond/
Author: Equipe editorial 3355bet
Description: Tema editorial independente em português do Brasil para o guia 3355bet.
Version: 1.0.0
Text Domain: 3355bet-editorial
*/

:root {
  --bg: #0b0d12;
  --bg-glow: radial-gradient(circle at 80% 0, #131a28, #0b0d12 42%);
  --surface: #151b27;
  --surface-2: #1a2130;
  --text: #edf0f5;
  --muted: #a9b0bd;
  --border: #293240;
  --gold: #e6c26d;
  --gold-2: #f7dc96;
  --green: #4abd5d;
  --yellow: #ffea31;
  --danger: #ff7272;
  --radius: 16px;
  --shadow: 0 18px 38px rgba(0, 0, 0, .3);
  --wrap: 1120px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg-glow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(230,194,109,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(230,194,109,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: var(--gold-2); text-underline-offset: .18em; }
a:hover { color: #fff1c6; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.site-wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--yellow); color: #111; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { padding: 28px 0 16px; }
.brand-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand-identity { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand-logo { width: 210px; max-height: 60px; object-fit: contain; object-position: left center; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 14px; background: linear-gradient(145deg, #242c3d, #10141d); box-shadow: var(--shadow); color: var(--gold-2); font: 800 13px/1 ui-sans-serif, system-ui; letter-spacing: -.04em; }
.brand-name { font: 700 22px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.brand-note { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-family: ui-sans-serif, system-ui; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.primary-nav { border: 1px solid var(--border); border-radius: 999px; background: rgba(21,27,39,.9); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px; }
.primary-nav a { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 14px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: #242c3b; color: var(--gold-2); }
.primary-nav .menu-cta > a { background: var(--yellow); color: #111; }
.primary-nav .menu-cta > a:hover { background: #fff27a; color: #111; }

.site-main { padding: 54px 0 96px; }
.article-shell { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.article-head { max-width: 900px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.14; text-wrap: balance; }
h1 { max-width: 920px; margin: 0 0 22px; font-size: clamp(2.25rem, 5vw, 3.55rem); letter-spacing: -.035em; }
h2 { margin: 74px 0 18px; font-size: clamp(1.75rem, 3vw, 2.35rem); scroll-margin-top: 24px; }
h3 { margin: 36px 0 12px; font-size: 1.35rem; }
.lead { max-width: 820px; color: #d6dbe5; font-size: clamp(1.08rem, 2vw, 1.23rem); line-height: 1.75; }
.updated { color: var(--muted); font-size: 14px; }
.content-layout { display: grid; grid-template-columns: 260px minmax(0, var(--reading)); align-items: start; gap: 64px; }
.content-layout.no-toc { grid-template-columns: minmax(0, var(--reading)); justify-content: center; }
.toc { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(21,27,39,.88); }
.toc summary { cursor: pointer; color: var(--gold-2); font-weight: 800; }
.toc ol { margin: 16px 0 0; padding-left: 20px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.entry-content > :first-child { margin-top: 0; }
.entry-content { min-width: 0; max-width: 100%; }
.entry-content p, .entry-content li { color: #d2d7df; }
.entry-content strong { color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li + li { margin-top: .5rem; }
.entry-content blockquote, .notice { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.article-image { margin: 30px 0 46px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.article-image img { width: 100%; }
.article-image figcaption { padding: 10px 15px; color: var(--muted); font-size: 13px; }
.table-scroll { width: 100%; max-width: 100%; margin: 28px 0 36px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold-2); background: #1c2331; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { position: relative; min-height: 62px; padding: 15px 16px 15px 68px; border-bottom: 1px solid var(--border); background: var(--surface); }
.steps li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.steps li:last-child { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-2); font-weight: 800; }
.faq { margin: 24px 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; color: var(--text); font-weight: 750; }
.faq details p { margin: 0 0 20px; }
.cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin-top: 18px; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 800; text-decoration: none; }
.cta:hover { color: #111; background: #fff27a; }
.cta.secondary { background: var(--green); color: #071208; }
.editorial-note { margin-top: 64px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--text); font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: #0f131b; color: var(--text); font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { padding: 13px 15px; border-radius: 10px; background: #183822; color: #dfffe5; }
.form-status.error { background: #3d1d22; color: #ffdce1; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { border-top: 1px solid var(--border); background: #090b0f; }
.footer-inner { padding: 42px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-copy { max-width: 860px; color: var(--muted); font-size: 14px; }
.footer-copy p { margin: 7px 0; }
.error-page { text-align: center; padding: 80px 0; }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { display: block; border-radius: var(--radius); }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; padding: 10px; }
  .primary-nav a { width: 100%; }
  .primary-nav .menu-cta { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; }
}

@media (max-width: 520px) {
  .site-wrap, .article-shell { width: min(calc(100% - 28px), var(--wrap)); }
  .site-header { padding-top: 16px; }
  .brand-note { display: none; }
  .brand-logo { width: 176px; max-height: 50px; }
  .brand-mark { width: 50px; height: 50px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .primary-nav .menu-cta { grid-column: auto; }
  .site-main { padding-top: 36px; }
  h1 { font-size: 2.2rem; }
  h2 { margin-top: 54px; }
  .article-image { margin-inline: -4px; }
}

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