/**
 * @package     Joomla.Site
 * @subpackage  mod_mini_news
 *
 * @copyright   Copyright (C) 2026. Todos los derechos reservados.
 * @license     GNU General Public License version 2 or later
 */

/* Estilos generales */
.mod-mini-news {
    --primary-color: #0d6efd;
    --transition-speed: 0.3s;
}

/* Efecto hover para cards */
.hover-lift {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Transición para imágenes */
.transition-scale {
    transition: transform var(--transition-speed) ease;
}

.hover-lift:hover .transition-scale {
    transform: scale(1.05);
}

/* Badges personalizados */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .mod-mini-news .h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .mod-mini-news .h6 {
        font-size: 0.9rem;
    }
    
    .mod-mini-news small,
    .mod-mini-news .small {
        font-size: 0.7rem;
    }
}

/* Mejoras de accesibilidad */
.mod-mini-news a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Animación de carga */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-mini-news .card {
    animation: fadeIn 0.5s ease forwards;
}