/* ============================================================
   FÁBRICA IMAGENS — post.css  (página individual de artigo)
============================================================ */

/* --- HERO DO POST --- */
.post-hero {
  height: 65vh;
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  transition: transform 10s ease;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.96) 0%,
    rgba(13,13,13,0.5)  50%,
    rgba(13,13,13,0.1)  100%
  );
}

.post-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.post-hero__titulo {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 100;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 800px;
}


/* --- LAYOUT DO POST (conteúdo + sidebar) --- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  padding-top: 72px;
  padding-bottom: 100px;
  align-items: start;
}


/* --- CORPO DO ARTIGO --- */
.post-body {
  min-width: 0;
}

.post-lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: 0.01em;
}

.post-body h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 48px 0 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.post-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 680px;
}

.post-body ul,
.post-body ol {
  padding-left: 20px;
  margin-bottom: 24px;
}

.post-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.post-body strong { color: var(--text); font-weight: 700; }

/* Figura / imagem dentro do post */
.post-figura {
  margin: 40px 0;
}

.post-figura img {
  width: 100%;
  height: auto;
  display: block;
}

.post-figura figcaption {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 10px;
  text-align: center;
}

/* Citação dentro do post */
.post-quote {
  border-left: 2px solid var(--accent);
  padding: 16px 28px;
  margin: 40px 0;
  background: var(--bg-elevated);
  font-size: 17px;
  font-weight: 200;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
}

.post-quote::before,
.post-quote::after { content: ''; }

/* Tags no final do post */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

/* .post-tag e .post-date estão em blog.css */


/* --- SIDEBAR --- */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-bloco {
  background: var(--bg-elevated);
  padding: 28px;
  position: relative;
}

.sidebar-autor__foto {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
}

.sidebar-autor__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.3;
}

.sidebar-bloco__titulo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.sidebar-bloco__texto {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.sidebar-bloco__link {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}

.sidebar-bloco__link:hover { letter-spacing: 0.26em; }

.sidebar-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-lista li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.sidebar-lista li:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-lista a {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.sidebar-lista a:hover { color: var(--accent); }

.sidebar-lista span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}


/* --- NAVEGAÇÃO ENTRE POSTS --- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding-bottom: 80px;
}

.post-nav__item {
  background: var(--bg-elevated);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  transition: background 0.2s, border-color 0.2s;
}

.post-nav__item:hover {
  background: var(--bg-card);
  border-top-color: var(--accent);
}

.post-nav__item--next { text-align: right; }

.post-nav__dir {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-nav__titulo {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.4;
  transition: color 0.2s;
}

.post-nav__item:hover .post-nav__titulo { color: var(--text); }


/* --- RESPONSIVO --- */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .post-sidebar { position: static; }
}

@media (max-width: 600px) {
  .post-hero__content { padding-bottom: 40px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
  .post-body p { max-width: 100%; }
}
