/*
Theme Name: Ofertas do Gato Blog
Theme URI: https://ofertasdogato.com.br
Author: Ofertas do Gato
Description: Blog de ofertas, cupons e guias de compra do Ofertas do Gato. Escuro, dourado e rápido.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: odg
*/

/* ===== Paleta (da logo: amarelo, preto do terno, laranja do "GATO") ===== */
:root {
  --bg: #0c0b0a;
  --bg-2: #12110f;
  --surface: #191714;
  --surface-2: #211f1b;
  --border: #302c26;
  --text: #f5f0e6;
  --muted: #aaa398;
  --gold: #febb24;
  --gold-2: #ffd04f;
  --gold-soft: rgba(254, 187, 36, .12);
  --hot: #ed4d18;
  --hot-soft: rgba(237, 77, 24, .15);
  --green: #25d366;
  --green-2: #1ebe5b;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
  --wrap: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: #fff; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.2em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.gold { color: var(--gold); }
.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, var(--hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font: 700 .95rem/1 var(--font-head);
  letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; box-shadow: 0 10px 30px -10px rgba(254, 187, 36, .6); }
.btn-gold:hover { color: #000; box-shadow: 0 14px 34px -10px rgba(254, 187, 36, .8); }
.btn-green { background: var(--green); color: #04220f; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .7); }
.btn-green:hover { background: var(--green-2); color: #04220f; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 1.15rem/1 var(--font-head); letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(254, 187, 36, .22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand b { color: var(--hot); font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--muted); font: 600 .92rem/1 var(--font-head); }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_parent > a { color: #fff; background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.search-toggle:hover, .menu-toggle:hover { border-color: var(--gold); color: var(--gold-2); }
.search-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.header-search { display: none; border-top: 1px solid var(--border); padding: 14px 0; }
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 1rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--gold); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--border); }
  .main-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  .nav-menu a { padding: 14px 12px; font-size: 1rem; }
}

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 187, 36, .22), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 77, 24, .12), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid rgba(254, 187, 36, .35); color: var(--gold-2);
  font: 700 .74rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats div { font: 800 1.6rem/1.1 var(--font-head); color: #fff; }
.hero-stats span { display: block; font: 500 .82rem/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.hero-card {
  position: relative; background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
}
.hero-card .mascot { width: 116px; height: 116px; border-radius: 28px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 12px 30px -10px rgba(254, 187, 36, .55); transform: rotate(-4deg); }
.hero-card .mascot img { width: 100%; height: 100%; object-fit: cover; }
.hero-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.hero-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.deal-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px dashed rgba(254, 187, 36, .4); margin-bottom: 10px; font-size: .92rem;
}
.deal-ticket strong { color: #fff; font-family: var(--font-head); }
.deal-ticket .off { background: var(--hot-soft); color: var(--hot); padding: 4px 10px; border-radius: 999px; font: 800 .78rem/1 var(--font-head); white-space: nowrap; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Seções ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .05); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.link-more { font: 700 .92rem/1 var(--font-head); display: inline-flex; align-items: center; gap: 6px; }

/* ===== Categorias ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-chip {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s;
}
.cat-chip:hover { border-color: var(--gold); transform: translateY(-3px); color: #fff; }
.cat-chip .ico { font-size: 1.6rem; }
.cat-chip strong { font: 700 .98rem/1.2 var(--font-head); }
.cat-chip small { color: var(--muted); font-size: .8rem; }

/* ===== Cards de post ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .post-grid-2 { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(254, 187, 36, .55); box-shadow: var(--shadow); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2010, #121214); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .9; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.badge {
  align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2);
  font: 700 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em;
}
.badge-hot { background: var(--hot-soft); color: var(--hot); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--gold-2); }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .82rem; margin-top: auto; }
.card-featured { grid-column: span 2; }
.card-featured .card-thumb { aspect-ratio: 16 / 9; }
.card-featured h3 { font-size: 1.5rem; }
@media (max-width: 620px) { .card-featured { grid-column: auto; } .card-featured .card-thumb { aspect-ratio: 16 / 9; } }

/* ===== CTA WhatsApp ===== */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px;
  background: linear-gradient(120deg, #0f2a1a 0%, #13161a 55%, #2a2110 100%); border: 1px solid rgba(37, 211, 102, .25);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #cfd6d1; margin: 0; }
.cta-band ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: #dfe6e1; }
.cta-band li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 10px; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ===== Steps / como funciona ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; font: 800 1.1rem/1 var(--font-head); margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ===== Layout de conteúdo ===== */
.page-hero { padding: 48px 0 28px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: radial-gradient(ellipse at top right, rgba(254, 187, 36, .12), transparent 60%); }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #5c5962; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-2); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 44px 0 70px; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout > *, .post-grid > *, .hero-grid > * { min-width: 0; }
h1, h2, h3, .breadcrumbs { overflow-wrap: anywhere; }
.layout-narrow { max-width: 780px; margin-inline: auto; padding: 44px 0 70px; }

/* ===== Artigo ===== */
.entry-header { margin-bottom: 28px; }
.entry-header .meta { margin-top: 14px; font-size: .9rem; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border); }
.entry-content { font-size: 1.06rem; }
/* Texto justificado com hifenização pt-BR (evita "buracos" entre palavras, principalmente no celular). */
.entry-content p, .entry-content li, .entry-content blockquote, .page-hero p, .affiliate-note {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
  overflow-wrap: break-word; hyphenate-limit-chars: 6 3 3;
}
.entry-content figcaption, .entry-content th, .entry-content td { text-align: left; hyphens: manual; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.5em; color: var(--gold-2); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--gold); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(255, 208, 79, .4); text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; color: #e8e3d8; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content th { color: var(--gold-2); font-family: var(--font-head); }
.entry-content img { border-radius: 14px; }
.entry-content code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--gold-2); }
.tip-box { padding: 18px 20px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(254, 187, 36, .35); }
.warn-box { padding: 18px 20px; border-radius: 14px; background: var(--hot-soft); border: 1px solid rgba(237, 77, 24, .35); }
.affiliate-note { margin-top: 36px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.post-tags a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .84rem; }
.post-tags a:hover { color: var(--gold-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.share a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.share a:hover { border-color: var(--gold); color: var(--gold-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.post-nav a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: #fff; font-weight: 600; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.widget h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); margin-bottom: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.widget li a { color: var(--text); font-size: .95rem; }
.widget li a:hover { color: var(--gold-2); }
.widget-wa { background: linear-gradient(160deg, #0f2a1a, var(--surface)); border-color: rgba(37, 211, 102, .3); }
.widget-wa p { color: #cfd6d1; font-size: .93rem; }

/* ===== Paginação ===== */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gold); border-color: var(--gold); color: #1a1205; }

/* ===== Footer ===== */
.site-footer { background: #070708; border-top: 1px solid rgba(255, 255, 255, .06); padding: 56px 0 28px; color: var(--muted); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Botão flutuante WhatsApp ===== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ===== 404 / vazio ===== */
.empty { text-align: center; padding: 80px 0; }
.empty .big { font: 800 clamp(4rem, 14vw, 8rem)/1 var(--font-head); }

/* ===== WP core ===== */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
