/*
Theme Name: 5KBET Guia Ocean 6rGXQfw6
Theme URI: https://5kbet.buzz/
Author: 5KBET Guia Brasil
Description: Tema editorial independente para análise de marca, jogos e segurança.
Version: 1.0.0
Text Domain: 5kbet-guia
*/

:root {
  --ink: #17303d;
  --muted: #5d737e;
  --paper: #f2f7fa;
  --white: #fff;
  --navy: #0e3852;
  --blue: #116f91;
  --teal: #238f84;
  --teal-soft: #e3f2ef;
  --amber: #d99b34;
  --amber-soft: #fff2d4;
  --line: #c8dce4;
  --shadow: 0 20px 52px rgba(20, 70, 95, .14);
  --radius: 16px;
  --content: 780px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #075f80; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #084a64; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: relative;
  z-index: 10;
  background: var(--navy);
  color: #f5fbfd;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.header-inner {
  width: min(calc(100% - 40px), var(--wide));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: 248px; height: auto; max-height: 62px; object-fit: contain; object-position: left center; }
.brand-fallback { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.35rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 9px 11px; color: #f5fbfd; font-size: .82rem; font-weight: 700; text-decoration: none; border-radius: 10px; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(42,182,166,.2); color: #fff; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; background: transparent; color: #fff; font: inherit; font-weight: 700; }

.site-main { overflow: hidden; }
.entry-content { padding: 42px 20px 82px; }
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > .flow,
.entry-content > .decision,
.entry-content > .timeline,
.entry-content > .faq,
.entry-content > .callout,
.entry-content > .editor-note,
.entry-content > .verdict-grid,
.entry-content > .summary-grid {
  width: min(100%, var(--content));
  margin-left: auto;
  margin-right: auto;
}
.entry-content > table { width: min(100%, 1060px); margin-left: auto; margin-right: auto; }
.entry-content section { padding: clamp(48px, 7vw, 92px) 20px; margin-left: -20px; margin-right: -20px; }
.entry-content section > * { width: min(100%, var(--content)); margin-left: auto; margin-right: auto; }
.entry-content section > table,
.entry-content section > .summary-grid,
.entry-content section > .verdict-grid { width: min(100%, 1080px); }
.entry-content section:nth-of-type(3n+2) { background: #fff; }
.entry-content section:nth-of-type(4n+3) { background: #dcecf3; }
.entry-content section:first-child { margin-top: -42px; background: linear-gradient(145deg, #0e3852 0%, #0f5f78 58%, #12685f 100%); color: #f5fbfd; padding-top: clamp(58px, 8vw, 108px); padding-bottom: clamp(58px, 8vw, 100px); }
.entry-content section:first-child h1 { color: #fff; }
.entry-content section:first-child p { color: #e4f3f6; }
.eyebrow { color: #9adfd7 !important; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: #123347; line-height: 1.15; letter-spacing: -.025em; }
h1 { margin-top: 0; margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 18ch; }
h2 { margin-top: 2.8rem; margin-bottom: 1rem; font-size: clamp(1.75rem, 3.4vw, 2.65rem); }
h3 { margin-top: 1.9rem; font-size: clamp(1.22rem, 2vw, 1.5rem); }
p { margin-top: 0; margin-bottom: 1.25em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .55em; }

.editorial-image { width: min(100%, 1280px); margin: clamp(30px, 5vw, 62px) auto; border-radius: var(--radius); overflow: hidden; background: #0e3852; box-shadow: var(--shadow); }
.editorial-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-image.hero-image img { aspect-ratio: 16 / 9; }
.editorial-image figcaption { padding: 10px 18px 13px; background: #fff; color: var(--muted); font-size: .82rem; }

.summary-grid, .verdict-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.summary-grid > div, .verdict-grid > div { padding: 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.08); }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { color: #fff; font-size: .9rem; }
.summary-grid span { color: #d7eff1; margin-top: 8px; font-size: .88rem; line-height: 1.5; }
.verdict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.verdict-grid > div { background: #fff; border-color: var(--line); box-shadow: 0 10px 28px rgba(20,70,95,.08); }

.callout, .editor-note, .decision, .flow, .timeline { margin-top: 28px; margin-bottom: 32px; padding: 26px 28px; border-radius: 14px; background: var(--teal-soft); border-left: 5px solid var(--teal); }
.callout { background: var(--amber-soft); border-left-color: var(--amber); }
.flow, .timeline { display: grid; gap: 12px; }
.flow > div, .timeline > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(14,56,82,.14); }
.flow > div:last-child, .timeline > div:last-child { border-bottom: 0; }
.flow span, .timeline span { color: var(--muted); }

table { margin-top: 26px; margin-bottom: 38px; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(20,70,95,.09); }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-size: .86rem; }
tbody tr:last-child td { border-bottom: 0; }

.faq { margin-top: 64px !important; }
.faq h2 { margin-top: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; min-height: 52px; padding: 16px 52px 16px 18px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

.site-footer { padding: 58px 20px 30px; background: #092b40; color: #d9e8ec; }
.footer-inner { width: min(100%, var(--wide)); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; }
.footer-title { color: #fff; font-size: 1.25rem; font-weight: 800; }
.footer-statement { max-width: 620px; color: #b9d0d8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.footer-links a { color: #d9f0f1; }
.footer-bottom { width: min(100%, var(--wide)); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #9fb9c3; font-size: .82rem; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 20px; right: 20px; top: 76px; margin: 0; padding: 12px; background: #0a3047; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav a { padding: 12px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 32px), var(--wide)); min-height: 72px; }
  .custom-logo { width: 206px; max-height: 54px; }
  .primary-nav { left: 16px; right: 16px; top: 68px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .entry-content { padding: 30px 16px 58px; }
  .entry-content section { padding: 48px 16px; margin-left: -16px; margin-right: -16px; }
  .entry-content section:first-child { margin-top: -30px; }
  h1 { font-size: clamp(2.1rem, 10vw, 2.75rem); }
  h2 { margin-top: 2.25rem; font-size: clamp(1.7rem, 7.5vw, 2.15rem); }
  .summary-grid, .verdict-grid { grid-template-columns: 1fr; }
  .flow > div, .timeline > div { grid-template-columns: 1fr; gap: 4px; }
  .editorial-image { border-radius: 10px; }
  .editorial-image img, .editorial-image.hero-image img { aspect-ratio: 4 / 3; object-position: center; }
  table { display: block; overflow-x: auto; white-space: normal; font-size: .9rem; }
  th, td { min-width: 150px; padding: 13px 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
