/*
Theme Name: 777bet Clean Mobile Guide
Theme URI: https://777bet.bond/
Author: Editorial 777bet
Description: Tema editorial independente em português do Brasil para conteúdos sobre a 777bet.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bet-guide
*/

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --hero: #0f7a5a;
  --hero-dark: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --gold: #f1c75b;
  --text: #102a22;
  --muted: #60736b;
  --border: #d8e8e0;
  --info: #eaf6f1;
  --warning: #fff5d9;
  --warning-text: #6f4a0d;
  --danger: #b84b4b;
  --focus: #064e3b;
  --shadow: 0 14px 36px rgba(17, 84, 63, .10);
  --radius: 18px;
  --content: 1160px;
  --reading: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hero-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.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;
}
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 10px; padding: 10px 16px; z-index: 9999; background: #fff; color: var(--text); }
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-column { width: min(100%, var(--reading)); margin-inline: auto; }

.site-header { background: linear-gradient(135deg, var(--hero-dark), var(--hero)); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 30px; }
.brand { color: #fff; font-size: 1.55rem; font-weight: 900; line-height: 1; letter-spacing: -.035em; text-decoration: none; }
.brand span { color: var(--gold); }
.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand-logo { width: auto; height: 38px; max-width: 190px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 10px; color: #fff; font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: rgba(255,255,255,.12); }
.site-nav li:last-child a { background: #fff; color: var(--hero-dark); margin-left: 4px; }
.site-nav li:last-child a:hover { background: #effaf5; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.42); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.title-area { background: #fff; border-bottom: 1px solid var(--border); }
.title-inner { width: min(calc(100% - 40px), 960px); margin-inline: auto; padding: 68px 0 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--hero); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); }
h1, h2, h3 { color: var(--text); line-height: 1.16; letter-spacing: -.035em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.55rem); }
.lede { max-width: 850px; margin: 24px 0 0; color: #385048; font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.65; }
.reviewed { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: .85rem; }
.reviewed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--info); }

.site-main { padding: 28px 0 72px; }
.content-section { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; padding: 44px 0; scroll-margin-top: 24px; }
.content-section.wide { width: min(calc(100% - 40px), var(--content)); }
.content-section + .content-section { border-top: 1px solid var(--border); }
.content-section h2 { margin: 0 0 22px; font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.content-section h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.content-section p { margin: 0 0 1.15em; }
.content-section > :last-child { margin-bottom: 0; }
.inline-link { font-weight: 800; }
.content-image { margin: 34px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.content-image img { width: 100%; }
.content-image figcaption { padding: 12px 18px; color: var(--muted); font-size: .82rem; }

.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(17,84,63,.06); }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--info); color: var(--hero-dark); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.check-list, .steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: step; }
.check-list li, .steps li { position: relative; margin: 0 0 14px; padding: 16px 18px 16px 58px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.check-list li::before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--info); color: var(--hero); font-weight: 900; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--hero); color: #fff; font-weight: 900; }
.note, .warning { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--accent); border-radius: 12px; background: var(--info); }
.warning { border-color: var(--gold); background: var(--warning); color: var(--warning-text); }
.cta-row { margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 2px solid var(--hero); border-radius: 12px; background: var(--hero); color: #fff; font-weight: 900; text-decoration: none; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover { background: var(--hero-dark); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--hero-dark); }

.faq-list { margin-top: 24px; }
.faq-list details { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-list details[open] { border-left: 5px solid var(--accent); }
.faq-list summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; cursor: pointer; font-weight: 900; }
.faq-list summary::after { content: "+"; color: var(--hero); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 18px 18px; }

.editorial-note { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--text); color: #e5f4ed; }
.editorial-note h2 { margin-bottom: 8px; color: #fff; font-size: 1.45rem; }
.editorial-note p { margin: 0; }
.editorial-note .button { border-color: #fff; background: #fff; color: var(--hero-dark); }

.correction-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.correction-form .full { grid-column: 1 / -1; }
.correction-form label { display: block; margin-bottom: 6px; font-weight: 800; }
.correction-form input, .correction-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b8cec3; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.correction-form textarea { min-height: 150px; resize: vertical; }
.form-status { padding: 14px 18px; border: 1px solid var(--accent-soft); border-radius: 12px; background: var(--info); font-weight: 800; }

.site-footer { background: var(--text); color: #c7d9d1; }
.footer-inner { padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-brand { margin-bottom: 18px; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #e5f4ed; }
.footer-note { max-width: 560px; margin: 12px 0; font-size: .92rem; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #9db4aa; font-size: .84rem; }

.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.archive-item { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

@media (max-width: 860px) {
  .header-inner { min-height: 58px; flex-wrap: wrap; }
  .site-header .brand-logo { height: 34px; max-width: 170px; }
  .js .menu-toggle { display: block; }
  .site-nav { width: 100%; margin-left: 0; padding-bottom: 12px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 4px; }
  .site-nav a { width: 100%; padding: 10px 12px; }
  .site-nav li:last-child a { margin: 6px 0 0; justify-content: center; }
  .title-inner { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-shell, .title-inner, .content-section, .content-section.wide { width: min(calc(100% - 28px), var(--content)); }
  .site-main { padding-bottom: 44px; }
  .content-section { padding: 36px 0; }
  .title-inner { padding: 42px 0 34px; }
  h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .button { width: 100%; }
  .editorial-note { grid-template-columns: 1fr; }
  .correction-form { grid-template-columns: 1fr; }
  .correction-form .full { grid-column: auto; }
  .footer-grid, .archive-list { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  th, td { padding: 12px; }
}

.bottom-enter-wrap {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
}

.bottom-enter-btn {
  min-width: 124px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 7px 22px rgba(0,0,0,.32);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.bottom-enter-btn.login-btn { background: #12304a; }
.bottom-enter-btn.register-btn { min-width: 146px; background: #b91c1c; box-shadow: 0 8px 26px rgba(127,29,29,.42); }
.bottom-enter-btn:hover { color: #fff; opacity: .94; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.38); }
.bottom-enter-btn:focus-visible { outline-color: #fff; }

@media (max-width: 768px) {
  .bottom-enter-wrap { bottom: max(16px, env(safe-area-inset-bottom)); gap: 9px; }
  .bottom-enter-btn { min-width: 105px; min-height: 44px; padding: 9px 16px; font-size: 15px; }
  .bottom-enter-btn.register-btn { min-width: 126px; }
}

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