@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:wght@500;600;700&family=Manrope:wght@500;600;700;800&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(122, 92, 88, 0.14), transparent 32%),
    linear-gradient(180deg, #fbf7f2 0%, #f8f4ef 100%);
  color: #2f2f2f;
}

.post-page {
  max-width: 1280px;
  margin: auto;
  padding: 56px 22px 80px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.post-detail {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(234, 222, 215, 0.9);
  border-radius: 34px;
  padding: 48px;
  box-shadow: 0 24px 70px rgba(122, 92, 88, 0.13);
  overflow: hidden;
}

.post-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category {
  display: inline-flex;
  align-items: center;
  background: #eaded7;
  color: #7a5c58;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

.post-detail h1 {
font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  color: #2f2a28;
  line-height: 1.06;
  margin: 8px 0 16px;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-meta {
  color: #8a7a73;
  font-size: 15px;
  margin-bottom: 30px;
}

.post-banner {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  margin-bottom: 38px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* CONTEÚDO DO TINYMCE */

.post-text {
  max-width: 790px;
  margin: auto;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.9;
  color: #4f4a47;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-text p {
  font-size: 18px;
  line-height: 1.9;
  color: #514b48;
  margin-bottom: 22px;
}

.post-text p:empty,
.post-text p:has(br:only-child) {
  display: none;
}

.post-text h1,
.post-text h2,
.post-text h3,
.post-text h4 {
  font-family: "Manrope", sans-serif;
  color: #2f2a28;
  line-height: 1.25;
  font-weight: 700;
  margin: 38px 0 18px;
}

.post-text h1 {
  font-size: 38px;
}

.post-text h2 {
  font-size: 32px;
}

.post-text h3 {
  font-size: 26px;
}

.post-text h4 {
  font-size: 22px;
}

.post-text strong,
.post-text b {
  color: #2f2a28;
  font-weight: 800;
}

.post-text em,
.post-text i {
  font-style: italic;
}

.post-text u {
  text-underline-offset: 4px;
}

.post-text a {
  color: #7a5c58;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-text ul,
.post-text ol {
  margin: 18px 0 26px 28px;
  padding-left: 18px;
}

.post-text li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: #514b48;
}

.post-text blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 5px solid #7a5c58;
  background: #f8f4ef;
  border-radius: 14px;
  color: #5f514d;
  font-style: italic;
}

.post-text img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 24px 0;
  display: block;
}

.post-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  overflow: hidden;
  border-radius: 14px;
}

.post-text table th,
.post-text table td {
  border: 1px solid #eaded7;
  padding: 12px 14px;
  text-align: left;
}

.post-text table th {
  background: #f8f4ef;
  color: #2f2a28;
  font-weight: 800;
}

.post-text table td {
  color: #514b48;
}

.post-text [style*="text-align: center"] {
  text-align: center;
}

.post-text [style*="text-align: right"] {
  text-align: right;
}

.post-text [style*="text-align: left"] {
  text-align: left;
}

.back-link {
  display: inline-flex;
  margin-top: 30px;
  text-decoration: none;
  color: #7a5c58;
  font-weight: 800;
  background: #f8f4ef;
  padding: 12px 16px;
  border-radius: 999px;
  transition: 0.25s;
}

.back-link:hover {
  background: #eaded7;
  transform: translateX(-3px);
}

/* AÇÕES LATERAIS */

.post-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(234, 222, 215, 0.9);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(122, 92, 88, 0.10);
}

.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
  background: #f8f4ef;
}

.action-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-text .label {
  font-weight: 800;
  font-size: 14px;
}

.action-text .count {
  font-size: 13px;
  color: #777;
}

.action-text .sub {
  font-size: 12px;
  color: #999;
}

.like-btn {
  color: #7a5c58;
}

.like-btn:hover,
.salvar-btn:hover {
  transform: translateY(-2px);
  background: #eaded7;
}

.like-btn.curtido,
.salvar-btn.salvo {
  background: #7a5c58;
  color: #fff;
}

.like-btn.curtido .count,
.salvar-btn.salvo .sub {
  color: #f3e9e7;
}

.share-btn {
  color: #2f2f2f;
}

.share-btn:hover {
  transform: translateY(-2px);
  background: #eeeeee;
}

.salvar-btn {
  color: #7a5c58;
}

/* REDES SOCIAIS */

.social-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee1da;
}

.social-title {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f4ef;
  color: #555;
  transition: 0.25s;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn.instagram:hover {
  background: #e1306c;
  color: #fff;
}

.social-btn.youtube:hover {
  background: #ff0000;
  color: #fff;
}

.social-btn.tiktok:hover {
  background: #000;
  color: #fff;
}

/* COMENTÁRIOS */

.comentarios-section {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(234, 222, 215, 0.9);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(122, 92, 88, 0.10);
}

.comentarios-section h2 {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  color: #2f2a28;
  margin-bottom: 18px;
}

.comentarios-section form {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  background: #f8f4ef;
  padding: 16px;
  border-radius: 20px;
}

.comentarios-section input,
.comentarios-section textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #eaded7;
  border-radius: 15px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.comentarios-section textarea {
  min-height: 110px;
  resize: vertical;
}

.comentarios-section input:focus,
.comentarios-section textarea:focus {
  border-color: #7a5c58;
  box-shadow: 0 0 0 4px rgba(122, 92, 88, 0.08);
}

.comentarios-section button[type="submit"] {
  border: none;
  background: #7a5c58;
  color: #fff;
  padding: 14px 18px;
  border-radius: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
}

.comentarios-section button[type="submit"]:hover {
  background: #684c49;
  transform: translateY(-2px);
}

.comentario-card {
  background: #fbf8f5;
  border: 1px solid #eee1da;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}

.comentario-card strong {
  color: #7a5c58;
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.comentario-card p {
  color: #514b48;
  line-height: 1.6;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
}

.comentario-card small {
  color: #9a8a83;
  font-size: 12px;
}

/* mantenha todo seu CSS atual */

/* BARRA DE LEITURA */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0,0,0,0.05);
  z-index: 9999;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7a5c58, #b08984);
  transition: width 0.08s linear;
}

/* META POST */

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #8a7a73;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
}

.post-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7a49f;
}


.relacionados-section {
  margin-top: 34px;
  background: #fff;
  border: 1px solid rgba(234, 222, 215, 0.9);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(122, 92, 88, 0.10);
}

.relacionados-header {
  margin-bottom: 24px;
}

.relacionados-header h2 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  color: #2f2a28;
  margin-bottom: 8px;
}

.relacionados-header p {
  color: #777;
  font-size: 15px;
}

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

.relacionado-card {
  background: #fbf8f5;
  border: 1px solid #eee1da;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  transition: 0.25s;
}

.relacionado-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(122, 92, 88, 0.14);
}

.relacionado-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.relacionado-content {
  padding: 18px;
}

.relacionado-content span {
  display: inline-block;
  color: #7a5c58;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.relacionado-content h3 {
  color: #2f2a28;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.relacionado-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.sem-relacionados {
  grid-column: 1 / -1;
  background: #fbf8f5;
  border: 1px dashed #d8c7bf;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  color: #777;
}

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

  .relacionados-section {
    padding: 24px;
  }
}

/* RESPONSIVO */

@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .post-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1;
    min-width: 180px;
  }
}

@media (max-width: 700px) {
  .post-page {
    padding: 34px 16px 60px;
  }

  .post-detail {
    padding: 24px;
    border-radius: 26px;
  }

  .post-banner {
    height: 250px;
    border-radius: 20px;
  }

  .post-text {
    font-size: 16px;
  }

  .post-text p {
    font-size: 16px;
    line-height: 1.8;
  }

  .post-text h1 {
    font-size: 30px;
  }

  .post-text h2 {
    font-size: 27px;
  }

  .post-text h3,
  .comentarios-section h2 {
    font-size: 23px;
  }

  .post-actions,
  .comentarios-section {
    padding: 20px;
    border-radius: 24px;
  }

  .action-btn,
  .comentarios-section button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .action-text {
    align-items: center;
  }
}