/*
Theme Name: 888games Editorial
Theme URI: https://888games.buzz/
Author: 888games Editorial
Description: Tema editorial leve para o guia independente 888games em português do Brasil.
Version: 1.0.1
Text Domain: games-editorial
*/

:root {
  --page: #f7f4ee;
  --surface: #ffffff;
  --surface-alt: #f0ebe2;
  --accent: #a83e32;
  --accent-hover: #8e332a;
  --amber: #d89a32;
  --ink: #242321;
  --muted: #68645e;
  --border: #ddd5c8;
  --info-bg: #eef4f1;
  --sage: #2f7764;
  --warning-bg: #fff4d9;
  --warning: #9b6416;
  --danger: #b43b3b;
  --shadow: 0 12px 32px rgba(58, 45, 30, .09);
  --radius: 12px;
  --content: 1160px;
  --reading: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute; 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 {
  clip: auto; width: auto; height: auto; margin: 0; padding: .75rem 1rem;
  top: 8px; left: 8px; background: var(--surface); z-index: 9999;
}
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 68px; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 14px rgba(58,45,30,.04);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--ink); text-decoration: none; }
.site-logo img { width: 174px; height: auto; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 8px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: var(--surface-alt); color: var(--accent-hover); }
main { min-height: 60vh; }
.hero { padding: 72px 0; background: linear-gradient(135deg, var(--surface-alt), #fbf9f4); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 52px; }
.hero-copy { max-width: 640px; }
.hero h1, .article-header h1 { margin: 0 0 22px; font-size: clamp(2.3rem, 5vw, 3.55rem); line-height: 1.08; letter-spacing: -.045em; }
.hero p, .article-lead { margin: 0; color: #45423d; font-size: 1.12rem; line-height: 1.72; }
.hero-media img, .content-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img { aspect-ratio: 16/9; object-fit: cover; }
.article-header { padding: 72px 0 46px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.article-header .reading { margin-inline: auto; }
.article-body { padding: 66px 0 78px; }
.reading { max-width: var(--reading); }
.article-body > .reading { margin-inline: auto; }
.article-body section + section { margin-top: 72px; }
.article-body h2 { margin: 0 0 24px; font-size: clamp(1.9rem, 4vw, 2.35rem); line-height: 1.2; letter-spacing: -.025em; }
.article-body h2::before { content: ""; display: block; width: 46px; height: 5px; margin-bottom: 16px; border-radius: 99px; background: var(--accent); }
.article-body h3 { margin: 38px 0 13px; font-size: clamp(1.35rem, 3vw, 1.6rem); line-height: 1.3; }
.article-body p { margin: 0 0 1.25em; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-body li + li { margin-top: .7em; }
.content-image { margin: 34px 0 40px; }
.content-image figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; padding: 11px 18px; border-radius: 10px; background: var(--accent); color: white; font-weight: 800; text-decoration: none; }
.action-link:hover { background: var(--accent-hover); color: white; }
.action-link.secondary { background: var(--surface); color: var(--accent-hover); border: 1px solid var(--accent); }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; background: var(--info-bg); }
.notice.warning { border-left-color: var(--amber); background: var(--warning-bg); }
.table-wrap { margin: 28px 0 38px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; min-width: 720px; border-collapse: collapse; line-height: 1.52; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); font-size: .94rem; }
tr:last-child td { border-bottom: 0; }
details { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
details[open] { border-left: 5px solid var(--accent); }
summary { display: flex; min-height: 56px; align-items: center; padding: 14px 18px; cursor: pointer; font-weight: 800; }
.faq-answer { padding: 0 18px 18px; }
.steps { counter-reset: guide-step; list-style: none; padding: 0 !important; }
.steps li { position: relative; min-height: 58px; padding: 0 0 26px 66px; border-left: 2px solid var(--border); margin-left: 22px; }
.steps li:last-child { border-left-color: transparent; }
.steps li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: -23px; top: -2px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }
.correction-form { margin-top: 28px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-row + .form-row { margin-top: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #bdb5aa; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 170px; resize: vertical; }
.form-note { color: var(--muted); font-size: .9rem; }
.form-status { padding: 15px 18px; border-radius: 8px; background: var(--info-bg); color: var(--sage); font-weight: 700; }
.form-status.error { background: #fff0ee; color: var(--danger); }
.site-footer { background: var(--ink); color: #f7f4ee; padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 64px; }
.site-footer h2 { font-size: 1.25rem; margin: 0 0 13px; }
.site-footer p { margin: 0 0 12px; color: #ded9d1; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-meta { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: #c9c3ba; }
.not-found { padding: 90px 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .site-header, .header-inner { min-height: 58px; }
  .header-inner { position: relative; }
  .site-logo img { width: 156px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 10px 16px 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu a { min-height: 48px; padding-inline: 12px; }
  .hero { padding: 44px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1, .article-header h1 { font-size: clamp(2.1rem, 10vw, 2.75rem); }
  .hero-media img { aspect-ratio: 4/5; object-position: 62% center; }
  .article-header { padding: 44px 0 34px; }
  .article-body { padding: 44px 0 56px; }
  .article-body section + section { margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (min-width: 821px) {
  .site-nav { display: block !important; }
}

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