/* ─── SINGLE POST PAGE ─── */
.single-page {
  min-height: 100vh;
  background: #ffffff;
  padding-bottom: 80px;
}

/* ─── CONTAINER + LAYOUT ─── */
.single-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── COLUNA PRINCIPAL ─── */
.single-main {
  padding-top: 100px;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(30, 45, 80, 0.4);
  margin-bottom: 18px;
}

.article-breadcrumb a {
  color: rgba(30, 45, 80, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: #0A9CD6;
}

.article-breadcrumb span {
  opacity: 0.5;
}

/* Categoria pill */
.article-cat-pill {
  display: inline-block;
  background: rgba(10, 156, 214, 0.1);
  color: #0A9CD6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* Título */
.article-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #1E2D50;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Meta linha */
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 156, 214, 0.15);
  color: #0A9CD6;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(30, 45, 80, 0.7);
}

.article-date {
  font-size: 13px;
  color: rgba(30, 45, 80, 0.45);
}

.article-reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(30, 45, 80, 0.45);
}

/* ─── IMAGEM DESTACADA ─── */
.article-thumbnail {
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

/* ─── CORPO DO ARTIGO ─── */
.article-body {
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 48px;
}

.article-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(30, 45, 80, 0.8);
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1E2D50;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1E2D50;
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1E2D50;
  margin: 24px 0 10px;
}

.article-body a {
  color: #0A9CD6;
  text-decoration: none;
  transition: text-decoration 0.15s;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body blockquote {
  border-left: 3px solid #DAFE08;
  padding: 16px 24px;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(30, 45, 80, 0.75);
  margin: 28px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

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

.article-body li {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(30, 45, 80, 0.75);
  margin-bottom: 8px;
}

.article-body img {
  max-width: 100%;
  border-radius: 10px;
  height: auto;
  display: block;
}

.article-body code {
  background: rgba(30, 45, 80, 0.07);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: #1E2D50;
  font-family: 'Courier New', Courier, monospace;
}

.article-body pre {
  background: #f4f6fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  color: #1E2D50;
}

/* Gutenberg */
.article-body .wp-block-image,
.article-body figure {
  margin: 24px 0;
}

.article-body figure img {
  margin: 0;
}

.article-body figcaption {
  font-size: 13px;
  color: rgba(30, 45, 80, 0.45);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.article-body iframe,
.article-body .wp-block-embed__wrapper {
  max-width: 100%;
  border-radius: 8px;
}

/* ─── COMPARTILHAMENTO ─── */
.article-share {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
}

.share-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(30, 45, 80, 0.4);
  margin-bottom: 14px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.share-linkedin {
  background: rgba(10, 156, 214, 0.1);
  border: 1px solid rgba(10, 156, 214, 0.25);
  color: #0A9CD6;
}

.share-whatsapp {
  background: rgba(133, 189, 47, 0.1);
  border: 1px solid rgba(133, 189, 47, 0.25);
  color: #85BD2F;
}

/* ─── POSTS RELACIONADOS ─── */
.related-posts {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 48px;
}

.related-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1E2D50;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── POST CARDS ─── */
.post-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-thumb-img {
  transform: scale(1.04);
}

.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(10, 156, 214, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 156, 214, 0.4);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-cat-pill {
  display: inline-block;
  background: rgba(10, 156, 214, 0.1);
  color: #0A9CD6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 10px;
  width: max-content;
}

.post-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1E2D50;
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #0A9CD6;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.post-card-date {
  font-size: 12px;
  color: rgba(30, 45, 80, 0.4);
}

.post-card-readmore {
  font-size: 12px;
  font-weight: 700;
  color: #0A9CD6;
  text-decoration: none;
}

/* ─── SIDEBAR ─── */
.single-sidebar {
  padding-top: 100px;
}

.single-sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: #f4f6fa;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 24px;
}

/* Sobre o autor */
.sidebar-author {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 156, 214, 0.15);
  color: #0A9CD6;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

.sidebar-author-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1E2D50;
  margin-bottom: 6px;
}

.sidebar-author-bio {
  font-size: 14px;
  color: rgba(30, 45, 80, 0.55);
  line-height: 1.65;
}

/* Títulos dos blocos */
.sidebar-block-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(30, 45, 80, 0.4);
  margin-bottom: 16px;
  font-family: 'Open Sans', sans-serif;
}

/* Posts recentes */
.sidebar-recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-recent-thumb-link {
  flex-shrink: 0;
}

.sidebar-recent-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.sidebar-recent-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: rgba(10, 156, 214, 0.08);
  flex-shrink: 0;
}

.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-recent-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(30, 45, 80, 0.8);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent-title:hover {
  color: #0A9CD6;
}

.sidebar-recent-date {
  font-size: 11px;
  color: rgba(30, 45, 80, 0.4);
}

/* Categorias */
.sidebar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: rgba(30, 45, 80, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.cat-pill:hover,
.cat-pill.active {
  border-color: #0A9CD6;
  color: #0A9CD6;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 900px) {
  .single-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px;
  }

  .single-sidebar {
    padding-top: 48px;
  }

  .single-sidebar-inner {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .single-container {
    padding: 0 20px;
  }

  .single-main {
    padding-top: 80px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    justify-content: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
