/* =========================================================
   CBBO News - Posts (padrão GE)
   Arquivo: /assets/css/style-posts.css
========================================================= */

:root{
  --cbbo-post-title: #111;
  --cbbo-post-subtitle: #6b6b6b;
  --cbbo-post-meta: #7a7a7a;
  --cbbo-post-border: #e8e8e8;
}

.cbbo-post-wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.cbbo-post-header{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cbbo-post-border);
  margin-bottom: 18px;
}

.cbbo-post-title{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cbbo-post-title);
  margin: 0 0 10px;
}

.cbbo-post-subtitle{
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--cbbo-post-subtitle);
  margin: 0 0 10px;
}

.cbbo-post-meta{
  font-size: 14px;
  color: var(--cbbo-post-meta);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cbbo-post-meta strong{
  font-weight: 700;
  color: #444;
}

.cbbo-post-body{
  font-size: 17px;
  line-height: 1.75;
  color: #1d1d1d;
}

.cbbo-post-body p{
  margin: 0 0 16px;
}

.cbbo-post-body h2,
.cbbo-post-body h3{
  margin: 22px 0 12px;
  line-height: 1.25;
}

.cbbo-post-body img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* =========================================================
   Comentários (toggle centralizado)
========================================================= */

.cbbo-post-footer{
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cbbo-post-border);
}

.cbbo-comments-toggle{
  margin-top: 10px;
  display: flex;
  justify-content: center; /* CENTRALIZA */
  align-items: center;
}

.cbbo-comments-btn{
  appearance: none;
  border: 1px solid var(--cbbo-post-border);
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.cbbo-comments-btn:hover{
  background: #f7f7f7;
}

.cbbo-comments-wrap{
  margin-top: 14px;
  display: none;
}

.cbbo-comments-wrap.is-open{
  display: block;
}

/* Ações do comentário */
.cbbo-comment-actions{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cbbo-like-btn,
.cbbo-delete-btn{
  border: 1px solid var(--cbbo-post-border);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}

.cbbo-like-btn:hover,
.cbbo-delete-btn:hover{
  background: #f7f7f7;
}

.cbbo-like-count{
  font-weight: 800;
  color: #333;
}

/* =========================================================
   Últimas 6 notícias da categoria
========================================================= */

.cbbo-latest-cat{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cbbo-post-border);
}

.cbbo-latest-cat h3{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.cbbo-latest-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cbbo-latest-item{
  border: 1px solid var(--cbbo-post-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cbbo-latest-item:hover{
  background: #fafafa;
}

.cbbo-latest-thumb{
  width: 86px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.cbbo-latest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbbo-latest-title{
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 4px;
  font-size: 15px;
}

.cbbo-latest-meta{
  font-size: 12px;
  color: var(--cbbo-post-meta);
}
