/* ==========================================================
   page-category.css — Estilos exclusivos do category.html
   ========================================================== */

/* ── CATEGORY HEADER ──────────────────────────────────────── */
.category-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.category-title { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.category-desc  { font-size: 14px; color: var(--muted); }

/* ── CATEGORY BODY ────────────────────────────────────────── */
.category-body { padding: 40px 0 64px; }

/* ── POST CARDS ───────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.card-post {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card-post:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-post .thumb { height: 200px; overflow: hidden; flex-shrink: 0; }
.card-post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-post:hover .thumb img { transform: scale(1.04); }

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

.card-post h2 { font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--text); }
.card-post h2 a:hover { color: var(--brand); }

.card-post p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin-left: auto;
  transition: gap .15s;
}
.card-post:hover .read-link { gap: 8px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .category-title { font-size: 22px; }
}
