/* ============================================================
   listar_campanhas.css - Estilos exclusivos para listar_campanhas.php
   Cards minimalistas tipo panfleto + Banner de Métricas OECA
   ============================================================ */

/* ===== SEÇÃO CAMPANHAS ===== */
.about-campanhas {
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 50%, #fff 100%);
  padding: 60px 0 80px;
  position: relative;
}

/* ===== TÍTULO PADRÃO OECA ===== */
.titulo-oeca {
  text-align: center;
  margin-bottom: 50px;
}

.titulo-oeca h2 {
  font-family: 'Righteous', cursive;
  font-size: 3.5rem;
  color: #FF9C2C;
  text-shadow: 2px 2px 6px rgba(255,156,44,0.25);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-transform: uppercase;
}

.titulo-oeca h2 i {
  font-size: 2.4rem;
  color: #FF9C2C;
}

.titulo-oeca .linha {
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, #FFDC00, #FF9C2C);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.titulo-oeca p {
  font-size: 1.5rem;
  color: #777;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BANNER DE MÉTRICAS OECA (padrão historia.css / voluntario.css)
   ============================================================ */

.stats-voluntario {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8f 50%, #1a3a5c 100%);
  border-radius: 20px;
  padding: 40px 30px;
  margin: 30px auto;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(26, 58, 92, 0.3);
}

.stats-voluntario::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.stat-box {
  position: relative;
  z-index: 1;
  padding: 10px 5px;
}

.stat-numero {
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFDC00;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-numero small {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.stat-barra {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stat-progresso {
  height: 100%;
  background: linear-gradient(90deg, #FFDC00, #FF9C2C);
  border-radius: 3px;
  transition: width 1s ease;
}

.stat-box.atingida .stat-progresso {
  background: linear-gradient(90deg, #2ECC40, #1e8449);
}

.stat-pct {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 204, 64, 0.2);
  color: #2ECC40;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(46, 204, 64, 0.3);
}

.stat-badge i {
  font-size: 1rem;
}

.stat-ajude {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF9C2C, #ffad33);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 156, 44, 0.3);
}

.stat-ajude:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 156, 44, 0.4);
  color: #fff;
}

.stat-ajude i {
  font-size: 1rem;
}

/* Faixa Etária - card fixo sem barra */
.stat-box.fixo .stat-numero {
  font-size: 2.4rem;
  letter-spacing: 2px;
}

.stat-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* ===== PANFLETO/BANNER ===== */
.campanha-panfleto {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  background: #fff;
}

.campanha-panfleto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Link */
.panfleto-link {
  display: block;
  position: relative;
  text-decoration: none;
}

/* Imagem - SEM CORTE */
.panfleto-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.campanha-panfleto:hover .panfleto-img {
  transform: scale(1.03);
}

/* Badges */
.panfleto-badge {
  position: absolute;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.panfleto-categoria {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #FF9C2C, #FFDC00);
  color: #fff;
}

.panfleto-ativo {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
}

/* Overlay hover */
.panfleto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,102,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.campanha-panfleto:hover .panfleto-overlay {
  opacity: 1;
}

/* Botão "Ver Campanha" no hover */
.panfleto-btn-ver {
  background: #fff;
  color: #ff6600;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.panfleto-btn-ver:hover {
  transform: scale(1.05);
}

/* ===== META / DOAÇÃO NO CARD ===== */
.panfleto-meta {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.meta-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

.btn-meta-doar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #FF9C2C, #ff6600);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-meta-doar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,102,0,0.3);
  color: #fff;
}

/* ===== RESPONSIVO DO BANNER ===== */
@media (max-width: 991.98px) {
  .stats-voluntario { padding: 30px 20px; margin: 20px 15px; }
  .stat-numero { font-size: 2.2rem; }
  .stat-numero small { font-size: 1rem; }
  .stat-label { font-size: 0.85rem; }
}

@media (max-width: 767.98px) {
  .stat-box { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-box:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 575.98px) {
  .stats-voluntario { padding: 25px 15px; border-radius: 16px; }
  .stat-numero { font-size: 1.8rem; }
  .stat-numero small { font-size: 0.85rem; }
  .stat-label { font-size: 0.75rem; letter-spacing: 1px; }
  .stat-barra { height: 5px; }
  .stat-pct { font-size: 0.75rem; }
  .stat-badge { font-size: 0.75rem; padding: 4px 10px; }
  .stat-ajude { font-size: 0.8rem; padding: 6px 14px; }
  .stat-box.fixo .stat-numero { font-size: 1.6rem; }
}

/* ===== RESPONSIVO GERAL ===== */
@media (max-width: 991.98px) {
  .about-campanhas { padding: 50px 0 60px; }
  .titulo-oeca h2 { font-size: 2.6rem; }
  .titulo-oeca h2 i { font-size: 1.8rem; }
  .titulo-oeca p { font-size: 1.2rem; }
  .campanha-panfleto { border-radius: 14px; }
  .panfleto-badge { font-size: 0.75rem; padding: 5px 12px; }
}

@media (max-width: 575.98px) {
  .titulo-oeca h2 { font-size: 1.8rem; flex-direction: column; gap: 8px; }
  .panfleto-badge { font-size: 0.7rem; padding: 4px 10px; }
  .panfleto-btn-ver { font-size: 0.9rem; padding: 10px 20px; }
  .btn-meta-doar { font-size: 0.85rem; }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }

/* ===== PAGINAÇÃO ===== */
.campanhas-paginacao {
  margin-top: 40px;
  margin-bottom: 20px;
}

.campanhas-paginacao .pagination {
  gap: 8px;
}

.campanhas-paginacao .page-item .page-link {
  border: 2px solid #eee;
  border-radius: 12px;
  color: #1a3a5c;
  font-weight: 600;
  padding: 10px 18px;
  transition: all 0.3s ease;
  background: #fff;
}

.campanhas-paginacao .page-item .page-link:hover {
  border-color: #FF9C2C;
  background: linear-gradient(135deg, #FF9C2C, #ffad33);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,156,44,0.3);
}

.campanhas-paginacao .page-item.active .page-link {
  background: linear-gradient(135deg, #FF9C2C, #ff6600);
  border-color: #FF9C2C;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,102,0,0.3);
}

.campanhas-paginacao .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #eee;
  background: #f8f9fa;
  color: #aaa;
}

.campanhas-paginacao .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background: #f8f9fa;
  color: #aaa;
  border-color: #eee;
}

.paginacao-info {
  margin-top: 15px;
}

.paginacao-info small {
  font-size: 0.9rem;
  color: #888;
}

/* Responsivo paginação */
@media (max-width: 575.98px) {
  .campanhas-paginacao .pagination {
    gap: 4px;
  }
  .campanhas-paginacao .page-item .page-link {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
}