/* ============================================================
   listar_videos.css - Estilos exclusivos para listar_videos.php
   Cards tipo thumbnail de vídeo com play button
   ============================================================ */

/* ===== SEÇÃO VÍDEOS ===== */
.about-videos {
  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;
}

/* ===== CARD DE VÍDEO ===== */
.video-card {
  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;
}

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

/* Card destaque */
.video-destaque {
  box-shadow: 0 4px 20px rgba(255,156,44,0.3);
  border: 2px solid #FF9C2C;
}

.video-destaque:hover {
  box-shadow: 0 12px 40px rgba(255,156,44,0.4);
}

/* Link */
.video-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ===== THUMBNAIL ===== */
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

/* ===== PLAY BUTTON ===== */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255,102,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-play i {
  font-size: 2rem;
  color: #fff;
  margin-left: 4px;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,102,0,1);
}

/* ===== BADGES ===== */
.video-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);
}

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

.video-destaque-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
}

/* ===== OVERLAY HOVER ===== */
.video-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;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

/* Botão "Assistir" no hover */
.video-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;
}

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

/* ===== INFO ABAIXO DO THUMBNAIL ===== */
.video-info {
  padding: 20px;
  background: #fff;
}

.video-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-descricao {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 991.98px) {
  .about-videos { 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; }
  .video-play { width: 60px; height: 60px; }
  .video-play i { font-size: 1.6rem; }
  .video-info { padding: 16px; }
  .video-titulo { font-size: 1rem; }
}

@media (max-width: 575.98px) {
  .titulo-oeca h2 { font-size: 1.8rem; flex-direction: column; gap: 8px; }
  .video-play { width: 50px; height: 50px; }
  .video-play i { font-size: 1.4rem; }
  .video-badge { font-size: 0.7rem; padding: 4px 10px; }
  .video-btn-ver { font-size: 0.9rem; padding: 10px 20px; }
  .video-info { padding: 14px; }
  .video-titulo { font-size: 0.95rem; }
  .video-descricao { 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 ===== */
.video-paginacao {
  margin-top: 50px;
}

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

.video-paginacao .page-link {
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 600;
  color: #FF9C2C;
  background: #f8f9fa;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.video-paginacao .page-item.active .page-link {
  background: linear-gradient(135deg, #FF9C2C, #FFDC00);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255,156,44,0.3);
}

.video-paginacao .page-item.disabled .page-link {
  color: #ccc;
  background: #f0f0f0;
  box-shadow: none;
  cursor: not-allowed;
}

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

.video-paginacao-info small {
  font-size: 0.9rem;
}

/* ===== RESPONSIVO PAGINAÇÃO ===== */
@media (max-width: 575.98px) {
  .video-paginacao .page-link {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  
  .video-paginacao-info small {
    font-size: 0.8rem;
  }
}

/* ===== BOTÃO FECHAR DO MODAL - LARANJA OECA ===== */
.video-modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}

.btn-fechar-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(135deg, #FF9C2C, #ffad33);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,156,44,0.3);
  cursor: pointer;
}

.btn-fechar-video:hover {
  background: linear-gradient(135deg, #e58a20, #FF9C2C);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,156,44,0.4);
  color: #fff;
}

.btn-fechar-video i {
  font-size: 1.2rem;
}

/* ===== RESPONSIVO BOTÃO FECHAR ===== */
@media (max-width: 575.98px) {
  .video-modal-footer {
    padding: 12px 16px;
  }
  
  .btn-fechar-video {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  
  .btn-fechar-video i {
    font-size: 1rem;
  }
}

/* ===== BANNER DE MÉTRICAS OECA (padrão historia.css / clientela.css) ===== */
.stats-voluntario {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8f 50%, #1a3a5c 100%);
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 50px;
  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;
}

.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;
}

/* Responsivo do banner */
@media (max-width: 991.98px) {
  .stats-voluntario { padding: 30px 20px; margin-top: 40px; }
  .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; margin-top: 30px; }
  .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; }
}