/* ========================================
   ESTILOS PARA PÁGINA SINGLE DO POST
   ======================================== */

/* Hero do Post */
.post-hero {
  position: relative;
  padding-top: 0;
  background-color: #1f2937;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.post-hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 0;
  width: 100%;
}

.post-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.post-header .category-badge {
  margin-bottom: 20px;
  display: inline-block;
}

.post-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Conteúdo do Post */
.post-content-section {
  padding: 60px 0 80px;
  background-color: white;
}

.post-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

.post-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #e5e7eb;
}

.post-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.post-body p {
  margin-bottom: 25px;
}

.post-body ul,
.post-body ol {
  margin: 25px 0;
  padding-left: 30px;
}

.post-body li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.post-body ul li {
  list-style-type: disc;
}

.post-body ol li {
  list-style-type: decimal;
}

.post-body blockquote {
  margin: 40px 0;
  padding: 25px 30px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
  border-left: 5px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  font-size: 1.2rem;
  font-style: italic;
  color: #1e40af;
  position: relative;
}

.post-body blockquote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.post-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-body a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: var(--transition-normal);
}

.post-body a:hover {
  color: var(--secondary-color);
}

.post-body code {
  background-color: #f3f4f6;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e11d48;
}

.post-body pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 25px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Informações do Autor no Rodapé do Post */
.post-footer-meta {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e5e7eb;
}

.post-footer-meta .post-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.post-footer-meta .author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 30px;
  border-right: 2px solid #e5e7eb;
}

.post-footer-meta .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d3eb2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.post-footer-meta .author-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}

.post-footer-meta .author-role {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 2px;
}

.post-footer-meta .post-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-text);
  font-size: 0.95rem;
}

.post-footer-meta .post-meta-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* CTA dentro do post */
.post-cta {
  background: linear-gradient(135deg, #1354ed 0%, #0d3eb2 100%);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: white;
  margin: 50px 0;
}

.post-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: white;
}

.post-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

.post-cta .btn {
  background-color: white;
  color: var(--primary-color);
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 8px;
}

.post-cta .btn:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Compartilhamento */
.post-share-section {
  margin: 60px 0;
  padding: 30px 0;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
}

.post-share-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
}

/* Posts Relacionados */
.related-posts-section {
  padding: 80px 0;
  background-color: #f9fafb;
}

.related-posts-section .section-header {
  margin-bottom: 50px;
}

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

/* Comentários - Estilos movidos para comments.css */

/* Responsividade */
@media (max-width: 768px) {
  .post-hero {
    padding-top: 0;
    min-height: 400px;
  }

  .post-hero-content {
    padding: 60px 0;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.5rem;
    margin-top: 35px;
  }

  .post-body h3 {
    font-size: 1.25rem;
  }

  .post-body blockquote {
    font-size: 1rem;
    padding: 20px;
  }

  .post-cta {
    padding: 30px 20px;
  }

  .post-cta h3 {
    font-size: 1.35rem;
  }

  .post-footer-meta {
    margin-top: 35px;
    padding-top: 30px;
  }

  .post-footer-meta .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .post-footer-meta .author-info {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
    width: 100%;
  }

  .post-footer-meta .author-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

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

  .post-content-section,
  .related-posts-section {
    padding: 40px 0;
  }
}

