/**
 * FeedCurato® - Mobile Menu Style
 * Cards Grid Dark
 * Grid de tarjetas oscuras con iconos, título y contador
 */

/* Mobile Menu Styles - Cards Grid Dark */
@media (max-width: 768px) {
    /* Nav container cuando está activo */
    .nav.active {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #0a0a0f;
        border-bottom: 1px solid #1e1e2a;
        padding: 16px;
        margin: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        animation: fadeIn 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    /* Cards individuales */
    .nav.active a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 12px;
        background: linear-gradient(135deg, #1e1e2a 0%, #12121a 100%);
        border: 1px solid #2a2a3a;
        border-radius: 12px;
        color: #d1d5db;
        text-decoration: none;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        min-height: 120px;
    }

    /* Efecto hover en card */
    .nav.active a:hover {
        background: linear-gradient(135deg, #2a2a3a 0%, #1e1e2a 100%);
        border-color: #6366f1;
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    }

    /* Iconos grandes */
    .nav.active a .link-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(99, 102, 241, 0.15);
        border-radius: 12px;
        flex-shrink: 0;
        font-size: 24px;
        margin-bottom: 12px;
        transition: all 0.3s ease;
    }

    .nav.active a:hover .link-icon {
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
        transform: scale(1.15) rotate(5deg);
    }

    /* Título de la categoría */
    .nav.active a .link-text {
        display: block;
        font-size: 17px;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    /* Contador de noticias - VISIBLE en Cards */
    .nav.active a .link-count {
        display: block;
        font-size: 11px;
        color: #9ca3af;
        font-weight: 500;
    }

    .nav.active a .link-count::before {
        content: '';
    }

    .nav.active a .link-count::after {
        content: ' noticias';
    }

    /* Animación de entrada */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Scroll personalizado */
    .nav.active::-webkit-scrollbar {
        width: 6px;
    }

    .nav.active::-webkit-scrollbar-track {
        background: #0a0a0f;
    }

    .nav.active::-webkit-scrollbar-thumb {
        background: #2a2a3a;
        border-radius: 3px;
    }

    .nav.active::-webkit-scrollbar-thumb:hover {
        background: #6366f1;
    }

    /* Ajuste para 1 columna en pantallas muy pequeñas */
    @media (max-width: 380px) {
        .nav.active {
            grid-template-columns: 1fr;
        }
    }
}