/* ===== NOTÍCIAS PAGE ===== */

/* Hero Section */
.noticias-hero {
  background: #004968;
  padding: 4rem 0 3rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.noticias-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
  font-size: 1.25rem;
}

.noticias-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.noticias-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
}

/* Busca Section */
.noticias-search {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.search-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: #f97316;
  background: white;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-icon {
  font-size: 1.5rem;
  color: #9ca3af;
  margin-right: 0.75rem;
  transition: color 0.3s;
}

.search-box:focus-within .search-icon {
  color: #f97316;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #1f2937;
  outline: none;
}

.search-input::placeholder {
  color: #9ca3af;
}

.btn-clear {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-clear:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.results-info {
  margin-top: 1rem;
  text-align: center;
}

.results-count {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.results-count strong {
  color: #f97316;
  font-weight: 700;
}

.no-results {
  font-size: 0.95rem;
  color: #ef4444;
  margin: 0;
}

/* Notícias Section */
.noticias-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Card de Notícia */
.noticia-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.noticia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Imagem do Card */
.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.noticia-card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.noticia-card:hover .image-overlay {
  opacity: 0.9;
}

.image-overlay i {
  font-size: 3rem;
  color: white;
}

/* Conteúdo do Card */
.card-content {
  padding: 1.5rem;
}

.card-meta {
  margin-bottom: 1rem;
}

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #306b84;
  font-weight: 600;
}

.card-date i {
  font-size: 1rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f97316;
  transition: gap 0.3s;
}

.noticia-card:hover .read-more {
  gap: 0.75rem;
}

.read-more i {
  font-size: 1.1rem;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  color: #f97316;
}

.empty-state h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.empty-state p {
  font-size: 1.05rem;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .noticias-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .noticias-hero {
    padding: 3rem 0 2rem;
  }

  .noticias-hero h1 {
    font-size: 2rem;
  }

  .noticias-hero p {
    font-size: 1rem;
  }

  .noticias-section {
    padding: 3rem 0;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .noticias-hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .card-content {
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-excerpt {
    font-size: 0.9rem;
  }

  .empty-state {
    padding: 4rem 1.5rem;
  }

  .empty-state i {
    font-size: 4rem;
  }

  .empty-state h3 {
    font-size: 1.5rem;
  }
}
