/* =========================================================
   CATEGORY ARCHIVE - VISUAL NO PADRÃO DA HOME
========================================================= */
.category-page-shell {
  max-width: var(--max-width, 1360px);
  margin: 24px auto 0;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.category-content-area,
.archive-header-card,
.category-post-item {
  min-width: 0;
}

.single-sidebar {
  position: sticky;
  top: 20px;
}

.archive-header-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,23,42,.06));
  padding: 24px 26px;
  margin-bottom: 24px;
}

.archive-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent, #03A250);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.category-title {
  margin: 14px 0 10px;
  color: var(--title-color, #111827);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
}

.category-description {
  color: var(--text-soft, #6b7280);
  font-size: 1rem;
  line-height: 1.75;
}

.category-description > *:first-child {
  margin-top: 0;
}

.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-post-item {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,23,42,.06));
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-post-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover, 0 18px 40px rgba(15,23,42,.1));
}

.category-post-thumb-link {
  display: block;
}

.category-post-thumbnail {
  position: relative;
  overflow: hidden;
}

.category-post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.category-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}

.category-thumb-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.category-post-pill,
.category-post-pill-static {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent, #03A250);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.category-post-date-overlay {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 700;
}

.category-post-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(135deg, var(--bg-soft, #f8fafc), #eef2f7);
}

.category-post-body {
  padding: 16px;
}

.category-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.category-post-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.32;
  font-weight: 800;
}

.category-post-title a {
  color: var(--title-color, #111827);
}

.category-post-title a:hover {
  color: var(--accent, #03A250);
}

.category-post-excerpt {
  color: var(--text-soft, #6b7280);
  font-size: 14px;
  line-height: 1.7;
}

.category-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 4px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  color: var(--title-color, #111827);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15,23,42,.06));
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
  background: var(--accent, #03A250);
  border-color: var(--accent, #03A250);
  color: #fff;
}

.empty-archive-card {
  text-align: center;
  color: var(--text-soft, #6b7280);
}

@media (max-width: 1199px) {
  .category-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .category-page-shell {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .category-page-shell {
    margin-top: 18px;
    padding: 0 14px 24px;
    gap: 18px;
  }

  .archive-header-card,
  .category-post-item {
    border-radius: 14px;
  }

  .archive-header-card {
    padding: 18px;
    margin-bottom: 18px;
  }

  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-post-body {
    padding: 14px;
  }
}
