/* ==========================================================================
   Single Post Layout & Components (post.php)
   ========================================================================== */

.post-single {
  padding-bottom: 80px;
}

/* 1. Top Super-Banner / Anúncio Topo */
.post__top-ad-section {
  padding: 24px 0 0;
}

.post__top-ad {
  aspect-ratio: auto;
  min-height: 110px;
  padding: 20px 24px;
}

.post__top-ad-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 100%;
}

.post__top-ad .ad__body {
  flex: 1 1 auto;
  min-width: 0;
}

.post__top-ad .ad__cta {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 20px;
  height: 40px;
}

.post__top-ad-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

/* 3. Grid Container (Artigo + Sidebar) */
.post__container {
  margin-top: 36px;
}

.post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

/* 3.1 Coluna Principal */
.post__main {
  min-width: 0;
}

.post__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post__tag-badge {
  background: var(--secoundary);
  color: #fafaf9;
  border-color: var(--text);
}

.post__tag-badge:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.post__meta-telemetry {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.post__meta-telemetry span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post__meta-bullet {
  margin: 0 4px;
}

.post__title {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--secoundary);
}

.post__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 24px;
}

.post__author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.post__author-data {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post__author-avatar {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--title);
  font-weight: 600;
  font-size: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  border-radius: 999px;
}

.post__author-avatar img,
.post__author-box-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
}

.post__author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post__author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.post__author-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.post__share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--secoundary-hover);
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.post-single .post__share-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.post-single .post__share-icon > i,
.post-single .post__share-icon > svg {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.post-single .post__share-icon > svg {
  fill: currentColor;
}

.post__share-icon:hover {
  background: var(--text);
  color: #fafaf9;
  border-color: var(--text);
}

.post__share-icon--wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

/* 3.2 Capa / Imagem Principal */
.post__cover-wrapper {
  margin-bottom: 36px;
}

.post__cover-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 470px;
  overflow: visible;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.post__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post__cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--bars);
  color: var(--muted);
}

.post__cover-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 2px;
}

/* 3.3 Corpo do Texto / Tipografia Editorial */
.post__body {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.post__body p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
}

.post__body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 36px 0 16px;
  letter-spacing: -.015em;
  font-weight: 600;
  line-height: 1.25;
}

.post__body h3 {
  font-size: 20px;
  margin: 28px 0 14px;
}

.post__quote {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: rgba(11, 11, 12, .03);
  font-family: var(--title);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.post__callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.post__callout-title {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.post__callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Anúncio In-Feed */
.post__infeed-ad-box {
  margin: 36px 0;
}

.post__infeed-ad {
  aspect-ratio: auto;
  min-height: 140px;
}

/* 3.4 Tags do Artigo */
.post__tags-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  flex-wrap: wrap;
}

.post__tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.post__tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post__tag-chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  transition: all .2s;
}

.post__tag-chip:hover {
  background: var(--text);
  color: #fafaf9;
  border-color: var(--text);
}

/* 3.5 Compartilhamento Inferior */
.post__share-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.post__share-prompt {
  font-weight: 500;
  font-size: 15px;
}

.post__share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 3.6 Box do Autor */
.post__author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line2);
  background: var(--panel);
  margin-bottom: 36px;
  align-items: flex-start;
}

.post__author-box-avatar {
  width: 56px;
  height: 56px;
  background: var(--text);
  color: #ffffff;
  font-family: var(--title);
  font-weight: 600;
  font-size: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.post__author-box-role {
  font-size: 11.5px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.post__author-box-name {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
}

.post__author-box-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* 3.7 Navegação Anterior / Próximo */
.post__prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 48px;
}

.post__prevnext-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .2s;
}

.post__prevnext-item:first-child {
  border-right: 1px solid var(--line);
}

.post__prevnext-item:hover {
  background: rgba(11, 11, 12, .04);
}

.post__prevnext-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.post__prevnext-title {
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* 3.8 Matérias Relacionadas */
.post__related-section {
  margin-bottom: 48px;
}

.post__related-title {
  margin: 6px 0 0;
}

.post__related-grid {
  margin-top: 20px;
}

/* 3.9 Seção de Comentários */
.post__comments-section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.post__comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 36px;
}

.post__comment-item {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.post__comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.post__comment-author {
  font-weight: 600;
  font-size: 14px;
}

.post__comments-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post__comment-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.post__comment-body {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}

/* 4. Coluna Lateral (Sidebar) */
.post__sidebar {
  position: sticky;
  top: 92px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.post__sidebar-ad {
  aspect-ratio: auto;
  min-height: 250px;
}

.post__widget-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}


/* Top 5 Mais Lidas */
.post__top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post__top-item {
  border-bottom: 1px solid var(--line);
}

.post__top-item:last-child {
  border-bottom: 0;
}

.post__top-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  transition: padding-left .2s;
}

.post__top-link:hover {
  padding-left: 6px;
}

.post__top-link:hover .post__top-item-title {
  color: var(--brand);
}

.post__top-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.post__top-item-title {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}

.post__top-date {
  font-size: 11.5px;
  color: var(--muted);
}

/* Lista de Categorias */
.post__cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post__cat-list li {
  border-bottom: 1px solid var(--line);
}

.post__cat-list li:last-child {
  border-bottom: 0;
}

.post__cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  transition: color .2s;
}

.post__cat-list a:hover {
  color: var(--brand);
}

.post__cat-count {
  font-size: 11.5px;
  color: var(--muted);
}

/* Mini Newsletter */
.post__mini-newsletter {
  padding: 24px;
  background: var(--secoundary);
  border: 1px solid var(--secoundary);
  color: #ffffff;
}

.post__mini-news-label {
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.post__mini-news-title {
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 8px;
}

.post__mini-news-text {
  font-size: 13px;
  color: rgba(250, 250, 249, .7);
  margin: 0 0 16px;
  line-height: 1.45;
}

.post__mini-news-form {
  display: flex;
  gap: 8px;
}

.post__mini-news-form input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  border-radius: 0;
}

.post__mini-news-form input::placeholder {
  color: rgba(250, 250, 249, .5);
}

.post__mini-news-form .btn {
  height: 38px;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--secoundary);
}

.post__mini-news-form .btn:hover {
  background: var(--brand);
}

.post__mini-news-msg {
  font-size: 11.5px;
  color: #4ade80;
  display: block;
  margin-top: 8px;
}

/* Responsividade do Post */
@media(max-width: 980px) {
  .post__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post__sidebar {
    position: static;
  }

  .post__top-ad-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .post__top-ad .ad__cta {
    align-self: flex-end;
  }
}

@media(max-width: 620px) {
  .post__prevnext {
    grid-template-columns: 1fr;
  }

  .post__prevnext-item:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post__share-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .post__author-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
