/* ============================================================
   Bird's Eye — Notícias (estilos específicos da seção)
   Reusa variáveis e utilitários de /css/style.css
   ============================================================ */

/* Hero da listagem */
.news-hero {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  color: #fff;
}
.news-hero .container { max-width: 980px; }
.news-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.news-hero .news-tagline {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.news-hero .news-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin-bottom: 0.5rem;
}
.news-hero .news-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.4rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.news-hero .news-rss:hover { color: #fff; }

/* Listagem */
.news-list {
  padding: 60px 0 80px;
  background: var(--bg);
}
.news-list .container { max-width: 1100px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card a.news-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}
.news-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  background-size: cover;
  background-position: center;
}
.news-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.news-card-meta .dot { margin: 0 7px; opacity: 0.4; }
.news-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.news-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.news-card-readmore {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* Paginação */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.news-pagination a, .news-pagination span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card);
  font-weight: 500;
}
.news-pagination a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.news-pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Post individual */
.news-post-hero {
  padding: 110px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
.news-post-hero .container { max-width: 880px; }
.news-post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.news-post-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.news-post-breadcrumb a { color: var(--text-muted); }
.news-post-breadcrumb a:hover { color: var(--color-primary); }
.news-post-breadcrumb .sep { margin: 0 7px; opacity: 0.5; }

.news-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.news-post-meta .news-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,58,105,0.08);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}
[data-theme="dark"] .news-post-meta .news-source-pill {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.news-post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 1.6rem;
}

.news-source-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 30px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(15,58,105,0.18);
}
.news-source-cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(15,58,105,0.28);
}
.news-source-cta i { font-size: 1rem; }

.news-post-body {
  padding: 30px 0 60px;
  background: var(--bg);
}
.news-post-body .container { max-width: 720px; }
.news-post-body article {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
}
.news-post-body article p { margin-bottom: 1.4rem; }
.news-post-body article h2 {
  font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}
.news-post-body article h3 {
  font-size: 1.2rem; font-weight: 700; margin: 1.6rem 0 0.8rem;
}
.news-post-body article ul,
.news-post-body article ol { margin: 0 0 1.4rem 1.4rem; }
.news-post-body article li { margin-bottom: 0.5rem; }
.news-post-body article a {
  color: var(--color-primary);
  border-bottom: 1px solid currentColor;
}
.news-post-body article a:hover { color: var(--color-accent); }
.news-post-body article blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 6px 0 6px 18px;
  margin: 1.4rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.news-post-body article img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.4rem 0;
}
.news-post-body article code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(15,58,105,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.news-source-foot {
  margin: 30px 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.news-source-foot strong { color: var(--text); }

.news-related {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.news-related .container { max-width: 1080px; }
.news-related h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.news-related .related-lead {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}
.news-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.news-related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--bg-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-related-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-related-card h3 i { color: var(--color-primary); }
[data-theme="dark"] .news-related-card h3 i { color: var(--color-accent); }
.news-related-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.news-related-card a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-hero { padding: 110px 0 50px; }
  .news-source-cta { width: 100%; justify-content: center; }
  .news-source-foot { flex-direction: column; align-items: flex-start; }
}
