/*
Theme Name: Mestres do Combate
Theme URI: https://example.com/mestres-do-combate
Author: Mestres do Combate
Description: Tema editorial para artes marciais, conteúdo recorrente, recomendações de produtos afiliados e contato por WhatsApp.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: mestres-do-combate
*/

:root {
  --mdc-ink: #0b0d0f;
  --mdc-charcoal: #15191d;
  --mdc-panel: #1e2328;
  --mdc-line: #343a40;
  --mdc-paper: #f4f0e7;
  --mdc-muted: #b4b0a7;
  --mdc-red: #c62f2f;
  --mdc-red-dark: #912020;
  --mdc-gold: #d7ad63;
  --mdc-white: #fff;
  --mdc-radius: 0.75rem;
  --mdc-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.24);
  --mdc-width: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mdc-ink);
  color: var(--mdc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mdc-gold); }
button, input, textarea { font: inherit; }

.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;
  left: 1rem;
  top: 1rem;
  background: var(--mdc-white);
  color: var(--mdc-ink);
  z-index: 9999;
}
.container { width: min(calc(100% - 2rem), var(--mdc-width)); margin-inline: auto; }
.site-main { min-height: 60vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(11, 13, 15, .92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-weight: 850; letter-spacing: .02em; }
.brand .custom-logo { width: 2.6rem; height: 2.6rem; object-fit: contain; }
.brand-mark {
  width: 2.6rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--mdc-red);
  border-radius: 50%;
  color: var(--mdc-white);
  font-size: .84rem;
  letter-spacing: -.06em;
  box-shadow: inset 0 0 0 .25rem var(--mdc-ink), inset 0 0 0 .34rem var(--mdc-red);
}
.brand-name { text-transform: uppercase; }
.brand-name span { color: var(--mdc-red); }
.primary-menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a { font-size: .92rem; font-weight: 700; }
.main-navigation { display: flex; align-items: center; gap: 1rem; }
.language-switcher { display: flex; gap: .35rem; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--mdc-line); list-style: none; }
.language-switcher a { display: block; min-width: 2.2rem; padding: .25rem .45rem; border: 1px solid var(--mdc-line); border-radius: .3rem; color: var(--mdc-muted); font-size: .72rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.language-switcher .current-lang a { border-color: var(--mdc-red); color: var(--mdc-white); }
.menu-toggle { display: none; color: var(--mdc-paper); background: transparent; border: 1px solid var(--mdc-line); border-radius: .5rem; padding: .55rem .75rem; }

.hero {
  position: relative;
  min-height: 41rem;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #090b0d url("assets/images/hero-mestres-do-combate.png") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,9,10,.97) 0%, rgba(7,9,10,.86) 38%, rgba(7,9,10,.26) 72%, rgba(7,9,10,.12) 100%), linear-gradient(0deg, var(--mdc-ink), transparent 32%);
}
.hero-content { width: min(43rem, 100%); padding-block: 7rem 6rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--mdc-gold); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .page-hero h1, .entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}
.hero h1 { font-size: clamp(3.1rem, 8vw, 6.8rem); }
.hero h1 span { display: block; color: var(--mdc-red); }
.hero-copy { max-width: 36rem; margin: 1.4rem 0 2rem; color: #dedbd3; font-size: clamp(1rem, 2vw, 1.18rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: var(--mdc-red);
  color: var(--mdc-white);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); background: var(--mdc-red-dark); color: var(--mdc-white); }
.button-secondary { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }

.section { padding-block: 5rem; }
.section-alt { background: var(--mdc-charcoal); border-block: 1px solid rgba(255,255,255,.08); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.section-heading a { color: var(--mdc-gold); font-weight: 750; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.topic-card {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid var(--mdc-line);
  border-radius: var(--mdc-radius);
  background: linear-gradient(145deg, var(--mdc-panel), #121518);
}
.topic-card:hover { border-color: var(--mdc-red); color: var(--mdc-white); }
.topic-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.topic-card span { color: var(--mdc-muted); font-size: .84rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { overflow: hidden; border: 1px solid var(--mdc-line); border-radius: var(--mdc-radius); background: var(--mdc-panel); }
.post-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #282d32; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 1.2rem; }
.post-meta { color: var(--mdc-gold); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.post-card h3 { margin: .55rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.16; }
.post-card p { margin: 0; color: var(--mdc-muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--mdc-line); border-radius: var(--mdc-radius); background: #111417; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 1rem; border-radius: .45rem; object-fit: cover; background: var(--mdc-panel); }
.product-card h3 { margin: 0 0 .45rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; }
.product-card p { color: var(--mdc-muted); }
.product-card .button { margin-top: auto; }
.affiliate-note { color: var(--mdc-muted); font-size: .8rem; }

.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1rem;
  background: linear-gradient(125deg, var(--mdc-red-dark), #451519);
  box-shadow: var(--mdc-shadow);
}
.cta-panel h2 { margin: 0 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.cta-panel p { margin: 0; color: #f1e8e3; }
.cta-panel .button { background: var(--mdc-paper); color: var(--mdc-ink); }

.page-hero { padding-block: 6rem 3rem; border-bottom: 1px solid var(--mdc-line); background: radial-gradient(circle at 82% 0, rgba(198,47,47,.16), transparent 30%); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page-description { max-width: 46rem; color: var(--mdc-muted); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; }
.entry-content { font-size: 1.07rem; }
.entry-content > * { max-width: 46rem; }
.entry-content > .alignwide { max-width: 62rem; }
.entry-content h2, .entry-content h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.14; }
.entry-content a { color: var(--mdc-gold); text-decoration: underline; text-underline-offset: .18em; }
.entry-content blockquote { margin-inline: 0; padding: .4rem 0 .4rem 1.5rem; border-left: .25rem solid var(--mdc-red); color: #ddd7cd; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.entry-featured { width: 100%; max-height: 36rem; object-fit: cover; margin: 2rem 0; border-radius: var(--mdc-radius); }
.sidebar-card { position: sticky; top: 6.5rem; padding: 1.2rem; border: 1px solid var(--mdc-line); border-radius: var(--mdc-radius); background: var(--mdc-panel); }
.sidebar-card h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }
.sidebar-card ul { margin: 0; padding-left: 1.1rem; }
.pagination { display: flex; gap: .6rem; margin-top: 2rem; }
.pagination .page-numbers { padding: .45rem .75rem; border: 1px solid var(--mdc-line); border-radius: .35rem; }
.pagination .current { background: var(--mdc-red); border-color: var(--mdc-red); }
.empty-state { padding: 2rem; border: 1px dashed var(--mdc-line); border-radius: var(--mdc-radius); color: var(--mdc-muted); }

.site-footer { padding-block: 3.5rem; border-top: 1px solid var(--mdc-line); background: #070809; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.footer-note { max-width: 43rem; color: var(--mdc-muted); font-size: .88rem; }
.copyright { margin-top: 2rem; color: #777; font-size: .8rem; }
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #20a85a;
  color: white;
  font-weight: 800;
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.35);
}
.whatsapp-float:hover { color: white; background: #168a49; }

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 1rem; border-bottom: 1px solid var(--mdc-line); background: var(--mdc-ink); }
  .main-navigation.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .primary-menu { flex-direction: column; align-items: stretch; gap: .35rem; }
  .primary-menu a { display: block; padding: .75rem; }
  .language-switcher { padding: .8rem 0 0; border-left: 0; border-top: 1px solid var(--mdc-line); }
  .hero { min-height: 35rem; background-position: 63% center; }
  .hero::before { background: linear-gradient(90deg, rgba(7,9,10,.96), rgba(7,9,10,.68)), linear-gradient(0deg, var(--mdc-ink), transparent 45%); }
  .hero-content { padding-block: 6rem 4rem; }
  .post-grid, .product-grid, .cta-panel, .footer-grid { grid-template-columns: 1fr; }
  .footer-menu { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 1.25rem), var(--mdc-width)); }
  .topic-grid { grid-template-columns: 1fr; }
  .section { padding-block: 3.5rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .whatsapp-float span { display: none; }
}
