/*
Theme Name: win222 Guia Editorial
Theme URI: https://win222.buzz/
Author: Equipe editorial win222.buzz
Description: Tema editorial independente em pt-BR para o guia win222.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: win222-guide
*/

:root {
  --bg: #07110e;
  --bg-soft: #0d1b17;
  --card: #12241e;
  --card-hover: #183027;
  --lime: #b8f34a;
  --cyan: #3dd6c6;
  --text: #f3f8f5;
  --muted: #afc2b8;
  --border: #29453a;
  --warning: #f0b44d;
  --error: #e16f73;
  --focus: #d3ff7c;
  --max: 1200px;
  --reading: 800px;
  --radius: 14px;
  --button-radius: 10px;
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.menu-open { overflow: hidden; }

a {
  color: var(--lime);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover { color: #d5ff88; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.site-shell,
.site-main {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 66px;
  background: rgba(7, 17, 14, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-mark span { color: var(--lime); }

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--text);
  background: var(--card);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 12px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  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); }

.button,
.header-cta,
.article-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--lime);
  border-radius: var(--button-radius);
  background: var(--lime);
  color: var(--bg);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover,
.header-cta:hover,
.article-cta:hover {
  transform: translateY(-2px);
  background: #d0ff78;
  border-color: #d0ff78;
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  border-color: var(--cyan);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(61, 214, 198, .12);
  border-color: var(--cyan);
  color: var(--text);
}

.site-main { padding-bottom: 72px; }

.article-header {
  max-width: 980px;
  padding: 76px 0 38px;
}

.article-header .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 3px 11px;
  color: var(--lime);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(184, 243, 74, .09);
  border: 1px solid rgba(184, 243, 74, .3);
  border-radius: 999px;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5.4vw, 4.7rem);
}

h2 { font-size: clamp(1.72rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); }

.article-header .lead {
  max-width: 860px;
  margin: 0 0 26px;
  color: #d5e2dc;
  font-size: clamp(1.08rem, 1.8vw, 1.27rem);
  line-height: 1.72;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.updated {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: .9rem;
}

.content-section {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 72px 0 0;
}

.content-section.wide { max-width: var(--max); }
.content-section:first-of-type { padding-top: 44px; }

.content-section > p:first-of-type { color: #dce7e1; }
.content-section p { margin: 0 0 1.15em; }

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-image {
  margin: 32px 0 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image img { width: 100%; }

.toc {
  max-width: var(--reading);
  margin: 40px auto 0;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 750;
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding-left: 20px;
}

.toc a { color: var(--muted); }
.toc a:hover { color: var(--lime); }

.table-scroll {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--bg-soft);
}

th, td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--lime);
  font-size: .88rem;
  letter-spacing: .02em;
  background: #10221c;
}

tr:last-child td { border-bottom: 0; }

.steps {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-width: 0;
  min-height: 86px;
  padding: 18px 20px 18px 76px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--bg);
  font-weight: 850;
  background: var(--lime);
  border-radius: 10px;
  content: counter(steps);
}

.steps strong { display: block; margin-bottom: 3px; color: var(--text); }

.decision-list,
.scope-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.decision-list li,
.scope-list li {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.decision-list strong { color: var(--lime); }

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  color: #e8f0ec;
  background: rgba(61, 214, 198, .08);
  border: 1px solid rgba(61, 214, 198, .4);
  border-radius: var(--radius);
}

.notice.warning {
  background: rgba(240, 180, 77, .08);
  border-color: rgba(240, 180, 77, .48);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 14px 52px 14px 18px;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  position: absolute;
  right: 18px;
  color: var(--lime);
  font-size: 1.4rem;
  content: "+";
}

.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

.closing-cta {
  max-width: var(--reading);
  margin: 64px auto 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(184, 243, 74, .11), rgba(61, 214, 198, .08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.closing-cta p { margin-top: 0; }

.editorial-note {
  max-width: var(--reading);
  margin: 42px auto 0;
  padding-top: 20px;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  padding: 52px 0 30px;
  background: #050d0b;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 48px;
}

.footer-brand { margin-bottom: 14px; }
.footer-copy { max-width: 680px; color: var(--muted); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  color: #81958b;
  font-size: .86rem;
  border-top: 1px solid #1a3028;
}

.error-page {
  max-width: var(--reading);
  min-height: 58vh;
  padding: 86px 0;
}

@media (max-width: 980px) {
  .site-shell,
  .site-main { width: min(100% - 32px, var(--max)); }

  .site-header,
  .header-inner { min-height: 58px; }
  .menu-toggle { display: block; }

  .primary-navigation {
    position: fixed;
    inset: 58px 0 auto 0;
    display: none;
    max-height: calc(100vh - 58px);
    padding: 16px;
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation li + li { margin-top: 4px; }
  .primary-navigation a { width: 100%; min-height: 48px; padding-inline: 14px; }
  .primary-navigation .header-cta { margin-top: 12px; }
  .desktop-cta { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-shell,
  .site-main { width: calc(100% - 32px); }
  .article-header { padding: 46px 0 24px; }
  h1 { font-size: clamp(2.12rem, 10vw, 3.2rem); }
  .content-section { padding-top: 44px; }
  .toc { margin-top: 28px; padding: 18px; overflow-x: auto; }
  .toc ul { display: flex; width: max-content; max-width: none; padding-left: 18px; }
  .toc li { min-width: min(240px, 70vw); padding-right: 12px; }
  .header-actions .button,
  .article-cta { width: 100%; }
  .feature-image { margin-inline: -4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .header-actions { display: grid; }
  .header-actions > * { width: 100%; }
  .footer-nav { grid-template-columns: 1fr; }
  .steps li { padding-left: 68px; }
}

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

