/* ============================================================
   ARTIGOS.CSS — Estilos da página de lista de artigos
   Visões de Riqueza — Blog de Finanças Pessoais
   ============================================================ */

/* ============================================================
   ARTICLES PAGE HEADER
   ============================================================ */
.articles-header {
  padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-10);
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-border);
}

.articles-header__title {
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-4);
}

.articles-header__desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-2);
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

/* ============================================================
   FILTRO DE CATEGORIAS
   ============================================================ */
.articles-filter {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ============================================================
   LAYOUT ARTIGOS + SIDEBAR
   ============================================================ */
.articles-content {
  padding-block: var(--sp-12);
}

/* ============================================================
   CATEGORIAS NA SIDEBAR
   ============================================================ */
.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.category-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-2);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.category-list__item:hover {
  background: var(--clr-bg-elevated);
  color: var(--clr-text);
}

.category-list__count {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  background: var(--clr-bg-elevated);
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-weight: 500;
}

/* ============================================================
   PAGINAÇÃO ARTIGOS
   ============================================================ */
.articles-pagination {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .articles-header {
    padding-top: calc(var(--header-h) + var(--sp-8));
  }
  .articles-header__title {
    font-size: var(--fs-4xl);
  }
}
