/* ==============================================
   ESTILOS DE PAGINACIÓN PARA EL BLOG PÚBLICO
   ============================================== */

/* Estilos base para paginación del blog */
.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination .pagination {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-pagination .page-item {
  margin: 0 2px;
}

.blog-pagination .page-link {
  border: none;
  padding: 12px 16px;
  color: #6c757d;
  font-weight: 500;
  border-radius: 50px !important;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
  overflow: hidden;
  min-width: 48px;
  text-align: center;
}

.blog-pagination .page-link:hover {
  color: #2c9c98;
  background: rgba(36, 188, 181, 0.1);
  transform: translateY(-2px);
}

.blog-pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(36, 188, 181, 0.3);
  transform: translateY(-2px);
}

.blog-pagination .page-item.active .page-link:hover {
  background: #2c9c98;
  color: white;
}

.blog-pagination .page-item.disabled .page-link {
  color: #dee2e6;
  background: transparent;
  cursor: not-allowed;
}

.blog-pagination .page-item.disabled .page-link:hover {
  color: #dee2e6;
  background: transparent;
  transform: none;
}

/* Efectos especiales para botones anterior/siguiente */
.blog-pagination .page-link[aria-label*="anterior"],
.blog-pagination .page-link[aria-label*="siguiente"] {
  padding: 12px 20px;
  font-weight: 600;
  background: rgba(36, 188, 181, 0.1);
  color: #2c9c98;
}

.blog-pagination .page-link[aria-label*="anterior"]:hover,
.blog-pagination .page-link[aria-label*="siguiente"]:hover {
  background: rgba(36, 188, 181, 0.2);
  color: #278884;
  transform: translateY(-2px);
}

/* Animación de carga */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1rem;
}

.blog-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

.blog-loading p {
  font-size: 1.1rem;
  margin: 0;
}

/* Información de paginación */
.pagination-info {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info small {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
  }

  .blog-pagination .page-link {
    padding: 10px 12px;
    font-size: 0.9rem;
    min-width: 40px;
  }

  .blog-pagination .page-link[aria-label*="anterior"],
  .blog-pagination .page-link[aria-label*="siguiente"] {
    padding: 10px 16px;
  }

  /* Ocultar texto en móvil, solo íconos */
  .blog-pagination .d-none.d-md-inline {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .blog-pagination {
    margin-top: 2rem;
  }

  .blog-pagination .pagination {
    padding: 6px;
    gap: 2px;
  }

  .blog-pagination .page-link {
    padding: 8px 10px;
    font-size: 0.85rem;
    min-width: 36px;
  }

  .pagination-info {
    margin-top: 1.5rem;
    padding: 0.75rem;
  }
}

/* Transiciones suaves para cambios de página */
.blog-posts-container {
  transition: opacity 0.3s ease;
}

.blog-posts-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Efecto de entrada para nuevos posts */
.news-card {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Retrasar la animación para crear efecto cascada */
.news-card:nth-child(1) {
  animation-delay: 0s;
}
.news-card:nth-child(2) {
  animation-delay: 0.1s;
}
.news-card:nth-child(3) {
  animation-delay: 0.2s;
}
.news-card:nth-child(4) {
  animation-delay: 0.3s;
}
.news-card:nth-child(5) {
  animation-delay: 0.4s;
}
.news-card:nth-child(6) {
  animation-delay: 0.5s;
}
.news-card:nth-child(7) {
  animation-delay: 0.6s;
}
.news-card:nth-child(8) {
  animation-delay: 0.7s;
}
.news-card:nth-child(9) {
  animation-delay: 0.8s;
}

/* Estados de hover mejorados para el blog */
.latest-news .news-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Mejoras para el breadcrumb del blog */
.blog-breadcrumb {
  background: transparent;
  padding: 1rem 0 2rem 0;
  margin-bottom: 0;
}

.blog-breadcrumb .breadcrumb {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  margin: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-breadcrumb .breadcrumb-item {
  font-weight: 500;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
  font-weight: 600;
}
