/* ===== PÁGINA BASE ===== */

.news-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.06), transparent),
    linear-gradient(to bottom right, #020617, #000000);
}

.news-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

/* linha genérica */
.news-hero__title-line {
  display: block;
}

/* PORTAL em amarelo da identidade */
.news-hero__title-portal {
  color: #ffb428;
  font-size: 4rem;
  letter-spacing: 0.16em;
  font-weight: 900;
  text-shadow:
    -1px 0 #ffb428,
    1px 0 #ffb428,
    0 -1px #ffb428,
    0 1px #ffb428;
}

/* MIL GRAUS com a fonte especial */
.news-hero__title-mil-graus {
  font-family: "PricedownGTA", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 5rem;
  line-height: 0.9;
}

/* ===== HERO ===== */



.news-hero {
  position: relative;
  padding: 6rem 1rem 3.5rem;
  overflow: hidden;
}

.news-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.news-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.12);
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fbbf24;
}

.news-hero-badge-icon {
  font-size: 1rem;
}

.news-hero-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
}

.news-hero-title span {
  display: block;
  margin-top: 0.2rem;
  background: linear-gradient(to right, #fbbf24, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.news-hero-subtitle {
  font-size: 1.05rem;
  color: #9ca3af;
  max-width: 30rem;
  margin: 0.5rem auto 0;
}

/* ===== BARRA DE FILTROS STICKY ===== */

.news-filters-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 40;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;

}

.news-filters-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-filters-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.news-filters-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #f5f5f5;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .news-filters-top {
    flex-direction: column;
    align-items: stretch;
  }

  .news-filters-top-right {
    justify-content: flex-end;
  }
}
.news-filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-search-wrapper {
  position: relative;
  flex: 1;
}

.news-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.news-search-input {
  width: 100%;
  padding: 8px 10px 8px 34px;
  border-radius: 10px;                  /* antes era 999px */
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  color: #f9fafb;
  font-size: 14px;
}

.news-search-input::placeholder {
  color: rgba(156, 163, 175, 0.9);
}
.news-filters-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
}

.news-sort-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #030712;
  color: #f9fafb;
  font-size: 14px;
}

.news-view-toggle {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.news-view-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-view-btn--active {
  background: #f9a826;
  color: #111;
}

.news-pagination {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.news-page-btn {
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #111;
  color: #f5f5f5;
  font-size: 13px;
  cursor: pointer;
}

.news-page-btn--active {
  background: #f9a826;
  border-color: #f9a826;
  color: #111;
}

@media (max-width: 768px) {
  .news-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .news-filters-right {
    width: 100%;
    justify-content: space-between;
  }
  .news-search-wrapper {
    flex: 1;
  }
}

/* layout padrão em grade (já existe) */
/* ...seu .news-grid atual */



/* mobile: volta para coluna */
@media (max-width: 768px) {
  .news-card--list {
    flex-direction: column;
  }

  .news-card--list .news-card__image-wrapper {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .news-card--list {
    flex-direction: column;
  }

  .news-card--list .news-card__image-wrapper {
    width: 100%;
  }
}

.news-filters-inner::-webkit-scrollbar {
  display: none;
}

.news-filters-icon {
  flex-shrink: 0;
  font-size: 1rem;
  color: #fbbf24;
}

/* botões de categoria */

.news-tab {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.news-tab--active {
  background: linear-gradient(to right, #fbbf24, #f97316);
  border-color: rgba(245, 158, 11, 0.8);
  color: #000;
  font-weight: 700;
}

.news-tab:not(.news-tab--active):hover {
  background: #18181b;
  border-color: #27272a;
  color: #e5e7eb;
  transform: translateY(-1px);
}

/* ===== GRID DE CARDS ===== */

.news-grid-section {
  padding: 2.5rem 1rem 4rem;
  background: #000;
}

.news-grid-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* card base */

.news-card {
  cursor: pointer;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  border: 1px solid #27272a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.news-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(24, 24, 27, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

/* imagem + overlay */

.news-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-card--list .news-card__image-wrapper {
  aspect-ratio: auto;
}
.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__image {
  transform: scale(1.08);
}

.news-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3),
    transparent
  );
}

/* badges */

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fbbf24;
}

.news-badge--category {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
}

.news-badge--featured {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: #fbbf24;
  color: #000;
  border-color: #fbbf24;
}

/* conteúdo do card */

.news-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.news-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 0.3rem;
}

.news-card__title--featured {
  font-size: 1.4rem;
}

.news-card__subtitle {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 0.6rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* featured ocupa mais espaço na grid */

.news-card--featured {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .news-card--featured {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .news-card--featured {
    grid-column: span 2;
    
  }
}

/* ===== SIDEBAR / MAIS LIDAS ===== */

.news-sidebar {
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.9);
  padding: 1.5rem 1.3rem;
}

.news-sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.news-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.news-sidebar__item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.news-sidebar__item-title {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.news-sidebar__item-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== DETALHE ===== */

.news-detail {
  max-width: 840px;
  margin: 0 auto;
  padding: 6rem 1rem 3.5rem;
}

.news-detail__content-card {
  background: radial-gradient(circle at top, rgba(24,24,27,0.7), transparent),
              #020617;
  border-radius: 1.5rem;
  border: 1px solid #27272a;
  padding: 1.75rem 1.8rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.news-detail__header {
  margin-bottom: 1.8rem;
}

.news-detail__header .news-meta {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid #27272a;
}

.news-detail__title {
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 900;
  color: #f9fafb;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.news-detail__subtitle {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.news-detail__image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #27272a;
  margin-bottom: 1.8rem;
  background: #020617;
}

.news-detail__image {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.news-detail__content {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #e5e7eb;
  margin-bottom: 2.5rem;
  max-width: 52rem;
}

.news-detail__content p {
  margin-bottom: 1rem;
}

.news-detail__content p:last-child {
  margin-bottom: 0;
}

/* Mais notícias (detalhe) */

.news-more {
  margin-bottom: 2rem;
}

.news-more__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.news-more__list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .news-more__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-more__list .news-card {
  border-radius: 1.25rem;
}

.news-more__list .news-card__body {
  padding: 0.9rem 1rem 1rem;
}

.news-card--compact {
  grid-column: span 1;
}

/* link voltar */

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #fbbf24;
  text-decoration: none;
}

.news-back-link:hover {
  text-decoration: underline;
}

/* Estados vazios */

.news-empty {
  font-size: 0.95rem;
  color: #9ca3af;
  text-align: center;
}

/* Animação de entrada */

#news-root {
  animation: news-page-enter 0.5s ease-out;
  margin-top: 1.5rem;
}

@keyframes news-page-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-source {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9rem;
}

.news-source-label {
  font-weight: 600;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.news-source-text {
  color: #e5e7eb;
}

.news-source-link {
  color: #38bdf8;
  text-decoration: none;
}

.news-source-link:hover {
  text-decoration: underline;
}

/* -------- ADS NA NEWS -------- */
/* faixa full-width (top/bottom) */
.news-grid .news-ad-card--full {
  grid-column: 1 / -1;
}

/* card menor para o ad de meio */
.news-ad-card--middle {
  grid-column: auto;
  /* se comporta como card normal da grid, só um pouco mais alto */
}

/* ocupa todas as colunas da grid, fica faixa grande */
.news-grid .news-ad-card {
  grid-column: 1 / -1;
}

.news-ad-card {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ratio aproximado 3:1 desktop, 2:1 mobile e altura controlada */
@media (min-width: 1024px) {
  .news-ad-card {
    aspect-ratio: 3 / 1;
    max-height: 300px;
  }
}
/* middle – mais compacto */
@media (min-width: 1024px) {
  .news-ad-card--middle {
    aspect-ratio: 1 / 9;
    max-height: 200px;
  }
}
@media (min-width: 1024px) {
  .news-ad-card--full {
    aspect-ratio: 3 / 1;
    max-height: 300px;
  }
}

@media (max-width: 1023.98px) {
  .news-ad-card {
    aspect-ratio: 2 / 1;
    max-height: 220px;
  }
}


.news-ad-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center; /* foca no topo */
  filter: brightness(0.85);
}

.news-ad-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.15)
  );
}



.news-ad-card-content {
  position: relative;
  z-index: 10;
  height: 100%;
  padding: 1.1rem 2rem 1.4rem;  /* mais espaço embaixo */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* distribui título/desc/botão */
  gap: 0.45rem;
}

.news-ad-badge {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.news-ad-title {
  color: #f9fafb;
  font-size: 1.6rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .news-ad-title {
    font-size: 2rem;
  }
}
@media (min-width: 768px) {
  .news-ad-card--middle {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

.news-ad-description {
  color: #e5e7eb;
  font-size: 1rem;
  max-width: 42rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-ad-button {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
}

.news-ad-button:hover {
  background: #d97706;
}

.news-ad-card:hover {
  transform: scale(1.05);
  border-color: #f59e0b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

/* ==== HOTFIX: AD MOBILE, NÃO CORTAR BOTÃO ==== */
@media (max-width: 767.98px) {
  .news-ad-card {
    aspect-ratio: unset;
    max-height: none;
    min-height: 240px;        /* mais alto que todos os textos */
  }

  .news-ad-card-content {
    height: auto;             /* NÃO 100% */
    padding: 1rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* remove o space-between no mobile */
    gap: 0.5rem;
  }

  .news-ad-title {
    font-size: 1.35rem;        /* mantém o tamanho forte */
  }

  .news-ad-description {
    font-size: 1rem;
  }

  .news-ad-button {
    font-size: 0.95rem;       /* mesmo do desktop */
    padding: 0.6rem 1.4rem;
    margin-top: 1rem;         /* sempre visível */
    align-self: flex-start;
  }
}


/* ===== AJUSTE: POSIÇÃO DO SAIBA MAIS (DESKTOP) ===== */
@media (min-width: 1024px) {
  .news-ad-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* em vez de space-between */
    gap: 0.6rem;
    padding-bottom: 1.2rem;       /* um respiro acima da borda */
  }

  .news-ad-description {
    margin-bottom: 0.4rem;
  }

  /* puxa o botão um pouco pra cima */
  .news-ad-button {
    margin-top: 2rem;           /* bem menor que antes */
  }
}


/* ==== CARROSSEL DE ADS (TOPO / FINAL) ==== */

/* o carrossel em si continua ocupando 1 linha inteira da grid */
.news-ad-carousel {
  position: relative;
  width: 100%;
  grid-column: 1 / -1;
}

/* área onde os slides ficam empilhados */
.news-ad-carousel-inner {
  position: relative;
  width: 100%;
}

/* por padrão, cada slide fica escondido */
.news-ad-slide {
  display: none;
  width: 100%;
}

/* só o slide ativo aparece, ocupando toda a largura */
.news-ad-slide--active {
  display: block;
}

/* setas de navegação */
.news-ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(0, 0, 0, 0.7);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
}

.news-ad-nav--prev {
  left: 0.9rem;
}

.news-ad-nav--next {
  right: 0.9rem;
}

.news-ad-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* em telas menores, aproxima um pouco as setas do centro do card */
@media (max-width: 767.98px) {
  .news-ad-nav--prev {
    left: 0.6rem;
  }
  .news-ad-nav--next {
    right: 0.6rem;
  }
}
.news-share-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-share-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.news-share-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.news-share-whatsapp i {
  font-size: 1.5rem;
}
