/* ==========================================================================
   TEMPLATE: DETALHE DA NOTÍCIA (LAYOUT COLUNA ÚNICA)
   Arquivo: static/css/templates/detalhe_noticia.css
   ========================================================================== */

.news-detail-page {
  padding: 30px 0 70px 0;
  max-width: 980px;
  margin: 0 auto;
}

/* Header Editorial da Matéria */
.news-header-card {
  background: linear-gradient(135deg, rgba(14, 22, 43, 0.95) 0%, rgba(7, 11, 22, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.news-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
}

.news-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 14px;
}

.news-detail-lead {
  font-size: 1.08rem;
  color: var(--silver-accent);
  line-height: 1.6;
  margin-bottom: 20px;
}

.news-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--silver-accent);
}

.news-meta-bar span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.news-meta-bar i {
  color: var(--gold-primary);
}

/* Coluna Única da Notícia */
.news-single-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

/* Imagem de Capa Principal */
.news-cover-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0b1224;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-cover-wrap img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.news-cover-caption {
  padding: 10px 16px;
  background: rgba(7, 11, 22, 0.9);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-cover-caption i {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

/* Corpo Editorial do Artigo */
.news-body-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 38px 36px;
}

.news-text-formatted {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--silver-accent);
}

.news-text-formatted p {
  margin-bottom: 22px;
}

.news-text-formatted p:last-child {
  margin-bottom: 0;
}

.news-quote-box {
  background: rgba(14, 22, 43, 0.6);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.65;
}

.news-radio-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(18, 28, 54, 0.9) 0%, rgba(7, 11, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-radio-callout:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(223, 171, 54, 0.2);
}

.news-radio-btn-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(223, 171, 54, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.news-radio-callout:hover .news-radio-btn-action {
  background: var(--gold-primary);
  color: #070B16;
}

.news-radio-callout i {
  font-size: 2rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.news-radio-callout strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.news-radio-callout span {
  font-size: 0.86rem;
  color: var(--silver-accent);
}

/* Barra de Ações & Compartilhamento */
.event-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px;
  background: rgba(14, 22, 43, 0.5);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   SEÇÃO HORIZONTAL: OUTRAS NOTÍCIAS (NO FINAL DA PÁGINA)
   ========================================================================== */

.news-related-section {
  margin-top: 55px;
  padding-top: 40px;
  border-top: 1px solid rgba(223, 171, 54, 0.25);
}

.news-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}

.news-related-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.news-related-badge i {
  color: var(--gold-primary);
}

.news-related-title-section {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.news-related-all-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.25s ease;
}

.news-related-all-link:hover {
  border-color: var(--border-gold);
  color: #fff;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.news-related-all-link i {
  transition: transform 0.25s ease;
}

.news-related-all-link:hover i {
  transform: translateX(4px);
}

/* Grid Horizontal de Outras Notícias */
.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card Individual de Outras Notícias */
.news-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.news-related-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.news-related-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0b1224;
}

.news-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.news-related-card:hover .news-related-thumb img {
  transform: scale(1.06);
}

.news-related-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-related-date {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-related-date i {
  color: var(--gold-primary);
  font-size: 0.72rem;
}

.news-related-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-related-card:hover .news-related-card-title {
  color: var(--gold-light);
}

.news-related-snippet {
  font-size: 0.82rem;
  color: var(--silver-accent);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-related-readmore {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.news-related-readmore i {
  transition: transform 0.2s ease;
}

.news-related-card:hover .news-related-readmore {
  color: var(--gold-light);
}

.news-related-card:hover .news-related-readmore i {
  transform: translateX(4px);
}

/* Responsividade da Página de Notícias */
@media (max-width: 992px) {
  .news-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .news-detail-title {
    font-size: 1.8rem;
  }

  .news-body-content {
    padding: 26px 20px;
  }

  .news-header-card {
    padding: 28px 20px;
  }

  .event-actions-bar {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .news-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-related-thumb {
    height: 190px;
  }

  .news-related-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-related-all-link {
    width: 100%;
    justify-content: center;
  }
}
