/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--gray-400);
  margin-left: 0.35rem;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .current {
  color: var(--black);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Artigo ── */
.article-page {
  padding: 0.5rem 0 2.5rem;
}

.article-header {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.article-header .tag {
  margin-bottom: 0.85rem;
}

.article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-top: 2px solid var(--black);
  border-bottom: 1px solid var(--gray-200);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}

.author-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.article-meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.article-meta-items span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.article-share span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.share-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.article-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-featured img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-caption {
  font-size: 0.78rem;
  color: var(--gray-600);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-style: italic;
}

.article-caption strong {
  font-style: normal;
  color: var(--gray-400);
  font-weight: 600;
  margin-right: 0.35rem;
}

/* ── Corpo do artigo ── */
.article-body {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-800);
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  line-height: 1.3;
  padding-left: 0.85rem;
  border-left: 4px solid var(--red);
}

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-left: 4px solid var(--red);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  color: var(--black);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--red-dark);
}

.article-inline-ad {
  margin: 2rem 0;
}

/* ── Tags e autor box ── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  max-width: 680px;
}

.article-tags a {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.article-tags a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  flex-shrink: 0;
}

.author-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.author-box p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Relacionadas ── */
.related-section {
  padding-top: 1rem;
  border-top: 2px solid var(--black);
}

.related-section .section-header {
  margin-bottom: 1.25rem;
}

.related-section .news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .related-section .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Categoria ── */
.category-hero {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(227, 6, 19, 0.15) 100%);
}

.category-hero-inner {
  position: relative;
  z-index: 1;
}

.category-hero .tag {
  margin-bottom: 0.75rem;
}

.category-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.category-title span {
  color: var(--red);
}

.category-desc {
  font-size: 1rem;
  opacity: 0.75;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.6;
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.category-toolbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
}

.sort-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sort-chip {
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--gray-200);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sort-chip:hover,
.sort-chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ── Destaque categoria ── */
.category-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.category-featured-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
}

.category-featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-featured-main:hover img {
  transform: scale(1.03);
}

.category-featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-mini-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, border-color 0.2s;
  flex: 1;
}

.category-mini-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--red);
}

.category-mini-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.category-mini-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.category-mini-card time {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
  display: block;
}

/* ── Paginação ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-btn:hover,
.page-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-dots {
  padding: 0 0.25rem;
  color: var(--gray-400);
  font-weight: 700;
}

/* ── Layout artigo ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

/* ── Responsive pages ── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .category-featured {
    grid-template-columns: 1fr;
  }

  .category-featured-main {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-share {
    margin-left: 0;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .category-mini-card {
    grid-template-columns: 90px 1fr;
  }

  .category-mini-card img {
    width: 90px;
    height: 60px;
  }

  .category-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
