/* ======================================================
   POST LAYOUT
   ====================================================== */

.post-layout-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

/* ======================================================
   POST MAIN CONTENT
   ====================================================== */

.post-main-content {
  background: #ffffff;
  line-height: 1.7;
  font-size: 1rem;
}

.post-header {
  margin-bottom: 20px;
}

/* --- BREADCRUMBS (SOLICITADO: VERDE E SEM SUBLINHADO) --- */
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: #1b5e20;
}

.breadcrumbs span[aria-hidden="true"] {
  margin: 0 5px;
  color: #999;
}

/* --- FIM BREADCRUMBS --- */

.post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #222;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
}

.post-meta a {
  color: #666;
  text-decoration: none;
}

.post-meta a:hover {
  text-decoration: underline;
}

/* ======================================================
   FEATURED IMAGE
   ====================================================== */

.featured-image-container {
  margin: 30px 0;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ======================================================
   TOC (TABLE OF CONTENTS)
   ====================================================== */

.toc-container {
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 15px 20px;
  margin: 30px 0;
  border-radius: 6px;
}

.toc-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  font-size: 0.9rem;
  color: #2e7d32;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

/* >>>>> NOVO: INDENTAÇÃO PARA SUBITENS (H3, H4+) <<<<< */
.toc-list .toc-list {
  margin-left: 15px;
  margin-top: 4px;
}

.toc-list .toc-list > li > a::before {
  content: "– ";
  color: #666;
  margin-right: 2px;
}

.toc-list .toc-list .toc-list {
  margin-left: 30px;
}

.toc-list a:focus {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 2px;
  border-radius: 2px;
}
/* >>>>> FIM NOVO <<<<< */

/* ======================================================
   POST BODY
   ====================================================== */

.post-body h2 {
  font-size: 1.6rem;
  margin-top: 40px;
}

.post-body h3 {
  font-size: 1.3rem;
  margin-top: 30px;
}

.post-body p {
  margin: 15px 0;
}

/* ======================================================
   ADS INSIDE POST
   ====================================================== */

.post-ad {
  margin: 30px 0;
  padding: 12px;
  background: #f9f9f9;
  text-align: center;
}

.post-ad span {
  display: block;
  font-size: 10px;
  color: #999;
  margin-bottom: 5px;
}

/* ======================================================
   SHARE BUTTONS
   ====================================================== */

.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 20px;
}

.post-share span {
  font-size: 0.85rem;
  color: #555;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000000; }
.share-btn.pinterest { background: #E60023; }

/* ======================================================
   AUTHOR BOX
   ====================================================== */

.author-box {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .author-box { flex-direction: column; text-align: center; }
  .author-photo { margin: 0 auto; }
}

.author-photo {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e5e5;
}

.author-meta h3, .author-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #333;
}

.author-role {
  font-size: 0.85rem;
  color: #2e7d32;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-bio {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.author-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #2e7d32;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.author-btn:hover {
  background-color: #2e7d32;
  color: #fff;
}

/* ======================================================
   SIDEBAR (NOVO ESTILO - SOFT GREEN)
   ====================================================== */

.post-sidebar {
  --sb-bg: #f2faf6;
  --sb-inner: #ffffff;
  --sb-border: #d7e7de;
  --sb-hover: #eef7f2;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  
  background: var(--sb-bg);
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 0.9rem;
}

.sidebar-box {
  background: var(--sb-inner);
  border: 1px solid var(--sb-border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.sidebar-box:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Dropdown de Categorias */
.categories {
  display: block;
}

.categories-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.categories-toggle:hover {
  background: var(--sb-hover);
}

.toggle-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.toggle-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chev {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transform: rotate(0deg);
  transition: transform .18s ease;
  color: var(--text-muted);
}

.categories.is-open .chev {
  transform: rotate(180deg);
}

.categories-panel {
  margin-top: 10px;
  display: none;
}

.categories.is-open .categories-panel {
  display: block;
}

/* Lista de categorias */
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cat-item a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--sb-border);
  background: #ffffff;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.cat-item a:hover {
  background: var(--sb-hover);
  border-color: #cfe3d9;
}

.cat-item a:active {
  transform: translateY(1px);
}

.cat-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
  color: #2e7d32;
}

.cat-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* Ad Box na Sidebar */
.ad-box {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--text-muted);
}

.ad-label {
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
