/* Planeta Homem — teste de layout (inspirado em portal de revista masculina) */

:root,
[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-elevated: #151516;
  --ink: #f5f3ee;
  --ink-muted: #b9b6ad;
  --gold: #dccfb0;
  --gold-strong: #c9b98a;
  --line: #2a2a2b;
  --header-bg: #000000;
  --radius: 4px;
  --max: 1320px;
  font-size: 16px;
}

[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-elevated: #ffffff;
  --ink: #18150f;
  --ink-muted: #6b6558;
  --gold: #a9793a;
  --gold-strong: #8f632c;
  --line: #e4dfd2;
  --header-bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  transition: background-color .2s, color .2s;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .2s;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 53px;
  width: auto;
}

.main-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.main-nav ul > li {
  display: flex;
  align-items: center;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-group {
  position: relative;
}

.nav-group-toggle {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: normal;
  color: var(--ink);
  background: none;
  border: none;
  margin: 0;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s, border-color .15s;
}

.nav-group-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-caret {
  font-size: 11px;
  transition: transform .15s;
}

.nav-group.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 20;
}

.nav-group:hover .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  border-bottom: none !important;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--panel-alt, rgba(0,0,0,.05));
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 20px;
  cursor: pointer;
}

.theme-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}

.theme-toggle:hover {
  border-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  padding: 24px 0 12px;
}

.hero-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 5%, rgba(0,0,0,.4) 45%, transparent 90%);
  z-index: 0;
}

.hero-caption {
  position: relative;
  z-index: 1;
  padding: 32px;
  padding-bottom: 56px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 32px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

.tag {
  display: inline-block;
  background: var(--gold);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.hero-caption h1 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 760px;
  color: #fff;
}

.hero-caption h1 a { color: #fff; }

.byline {
  font-size: 14px;
  color: #d8d3c8;
}

/* Faixa "em alta" com rolagem contínua */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  overflow: hidden;
  margin-top: -1px;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 40px;
  padding: 16px 20px;
  animation: ticker-scroll 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  max-width: 280px;
}

.ticker-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.ticker-item span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section headers ---------- */

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.section-head a {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.section-head a:hover { color: var(--gold); }

/* ---------- Mosaic (destaque + grade 2x2) ---------- */

.mosaic {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 10px;
  overflow: hidden;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  padding: 20px;
  isolation: isolate;
}

.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 15%, rgba(0,0,0,.15) 60%, transparent 100%);
  z-index: 0;
}

.mosaic-hero {
  min-height: 480px;
}

.mosaic-card > * {
  position: relative;
  z-index: 1;
}

.pill {
  align-self: flex-start;
  background: var(--gold);
  color: #14120c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.mosaic-card h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}

.mosaic-hero h3 {
  font-size: 30px;
}

.mosaic-card .by {
  color: #d8d3c8;
  font-size: 12px;
  margin: 0;
}

.mosaic-card:hover h3 { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Article page ---------- */

.article-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs span { margin: 0 4px; }

.article-header .tag { margin-bottom: 14px; }

.article-header h1 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 0 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.article-cover {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 50px;
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  color: var(--gold);
}

.article-body p { margin: 0 0 20px; color: var(--ink); }

.article-body ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink); }
.article-body li { margin-bottom: 8px; }

.article-body a { color: var(--gold); text-decoration: underline; }

.article-disclaimer {
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  margin: 30px 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.article-disclaimer h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 8px;
  color: var(--gold);
}

/* ---------- Navegação anterior/posterior ---------- */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 20px auto 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.post-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color .15s;
}

.post-nav-card:hover {
  border-color: var(--gold);
}

.post-nav-next {
  flex-direction: row-reverse;
  text-align: right;
}

.post-nav-card img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-nav-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.post-nav-card h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

.badge-test {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--gold);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .main-nav li {
    border-bottom: 1px solid var(--line);
  }
  .main-nav li:last-child {
    border-bottom: none;
  }
  .main-nav a {
    display: block;
    padding: 14px 0;
  }
  .nav-toggle { display: inline-block; flex-shrink: 0; }
  .site-header .wrap { flex-wrap: nowrap; position: relative; }
  .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
  }
  .nav-group:hover .nav-dropdown {
    opacity: 0;
    visibility: hidden;
  }
  .nav-group.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 14px;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height .2s ease;
  }
  .nav-group.is-open .nav-dropdown {
    max-height: 400px;
  }
  .nav-dropdown li {
    border-bottom: none;
  }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-hero { min-height: 320px; }
  .article-header h1 { font-size: 28px; }
  .hero-caption h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-card { min-height: 200px; }
  .hero-banner { border-radius: 6px; }
  .hero-caption { padding: 20px; padding-bottom: 44px; }
  .hero-caption h1 { font-size: 22px; }
  .hero-dots { right: 20px; bottom: 14px; }
  .ticker-item { max-width: 210px; }
  .ticker-item img { width: 38px; height: 38px; }
  .article-header h1 { font-size: 24px; }
  .article-body { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { flex-direction: row; text-align: left; }
}
