/* Estilos para la paginación de Q-Research */
.pagination {
    margin: 2rem 0;
    gap: 5px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Animación para las noticias */
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Efecto hover en las noticias */
.news-item .inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.news-item .inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Estilos específicos para imágenes de noticias */
.qresearch-news-img {
    transition: opacity 0.3s ease-in-out;
    object-fit: contain;
    min-height: 200px;
    border-radius: 8px;
}

/* Contenedor de imagen con badge */
.news-image-container {
    position: relative;
    overflow: visible;
    border-radius: 8px;
}

/* Badge de fecha sobre la imagen */
.news-date-badge {
    position: absolute;
    top: -10px;
    right: 0;
    background: transparent;
    color: #000;
    padding: 4px 8px;
    border-radius: 0 8px 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.8);
    z-index: 10;
    transition: all 0.3s ease;
    animation: slideInBadge 0.6s ease-out 0.3s both;
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

/* Badge especial para noticias fijadas */
.news-date-badge.pinned-badge {
    background: transparent;
    color: #ffc107;
    padding: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}

.news-date-badge.pinned-badge i {
    font-size: 1.1rem;
    margin: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

/* Efecto hover en el badge */
.news-item .inner:hover .news-date-badge {
    transform: scale(1.05);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Hover especial para badge fijado */
.news-item .inner:hover .news-date-badge.pinned-badge {
    transform: scale(1.08);
    color: #ffca28;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
}

/* Skeleton loader mientras carga la imagen */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        font-size: 0.875rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
    }

    .news-item {
        margin-bottom: 1rem;
    }

    /* En mobile, las imágenes se ajustan completamente sin cortarse */
    .qresearch-news-img {
        object-fit: contain;
        min-height: auto;
        background-color: #f8f9fa;
    }

    /* Badge más pequeño en mobile */
    .news-date-badge {
        top: -8px;
        right: 0;
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 0 6px 0 10px;
    }

    .news-date-badge i {
        font-size: 0.85rem;
    }

    .news-date-badge.pinned-badge {
        padding: 6px;
    }

    .news-date-badge.pinned-badge i {
        font-size: 0.95rem;
    }
}
