/* Portal do Brasileiro — extras.css
   Estilos complementares ao style.css original.
   Carregar SEMPRE depois do style.css.
*/

/* ========= CARD DE DESTAQUE (PRESELL / TERMOS) ========= */
.article-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5585 100%);
  color: #ffffff;
  border: 1px solid #1e3a5f;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.article-card.featured::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 100%;
  background: radial-gradient(circle at right, rgba(184,152,99,0.14) 0%, rgba(184,152,99,0) 70%);
  pointer-events: none;
}
.article-card.featured .tag {
  background: rgba(232, 220, 196, 0.18);
  color: #e8dcc4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 5px 12px;
}
.article-card.featured h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 16px 0 14px;
  max-width: 760px;
}
.article-card.featured h3 a {
  color: #ffffff;
}
.article-card.featured h3 a:hover {
  color: #e8dcc4;
  text-decoration: none;
}
.article-card.featured p {
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-card.featured .meta {
  color: rgba(232, 220, 196, 0.72);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.article-card.featured .meta::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.article-card.featured:hover .meta::after {
  transform: translateX(4px);
}
@media (max-width: 680px) {
  .article-card.featured { padding: 26px 22px; }
  .article-card.featured h3 { font-size: 1.35rem; }
}

/* ========= HERO IMAGE DO ARTIGO ========= */
.article-hero {
  max-width: 960px;
  margin: 28px auto 36px;
  padding: 0 20px;
}
.article-hero img,
.article-hero svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
}

/* ========= NOTA DE ÚLTIMA REVISÃO ========= */
.revision-note {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
  font-size: 0.92rem;
  color: var(--color-muted);
}
.revision-note strong {
  color: var(--color-text);
}

/* ========= ARTIGOS RELACIONADOS ========= */
.related-articles {
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 40px 20px 0;
  border-top: 1px solid var(--color-border);
}
.related-articles h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--color-text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.related-card .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-tag);
  color: var(--color-accent);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.related-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.related-card h3 a {
  color: var(--color-text);
}
.related-card h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.related-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ========= PÁGINA DE TEMAS / CATEGORIAS ========= */
.categories-header {
  max-width: var(--max-width);
  margin: 40px auto 20px;
  padding: 0 20px;
}
.categories-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--color-text);
}
.categories-header p {
  color: var(--color-muted);
  max-width: 720px;
}
.category-section {
  max-width: var(--max-width);
  margin: 50px auto 0;
  padding: 0 20px;
}
.category-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.category-section h2 .count {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
}
.category-list {
  list-style: none;
  padding: 0;
}
.category-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.category-list li:last-child {
  border-bottom: none;
}
.category-list a {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--color-text);
  display: inline-block;
  margin-bottom: 4px;
}
.category-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.category-list .desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ========= PÁGINA 404 ========= */
.error-page {
  max-width: 720px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.error-page p {
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.error-page .error-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.error-page .error-links a {
  padding: 10px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-accent);
  transition: all 0.15s ease;
}
.error-page .error-links a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-decoration: none;
}
