/* ========================================
   Menú Móvil Tipo App (Bottom Navigation)
======================================== */

.ws-mobile-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--ws-bg-primary);
    border-top: 1px solid var(--ws-border);
    padding: 0.5rem 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ocultar cuando se hace scroll hacia abajo */
.ws-mobile-menu.ws-hidden {
    transform: translateY(100%);
}

/* Solo en mobile */
@media (max-width: 768px) {
    .ws-mobile-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Agregar padding al body para compensar el menú fijo */
    body {
        padding-bottom: 70px;
    }

    /* Si el reproductor está activo, aumentar el padding */
    body.ws-player-active {
        padding-bottom: 150px;
    }
}

/* Items del menú */
.ws-mobile-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    min-width: 60px;
    color: var(--ws-text-muted);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ws-mobile-menu__item svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ws-mobile-menu__item span {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover state */
.ws-mobile-menu__item:hover {
    color: var(--ws-primary);
}

.ws-mobile-menu__item:hover svg {
    transform: translateY(-2px);
}

/* Active state */
.ws-mobile-menu__item.ws-active {
    color: var(--ws-primary);
}

.ws-mobile-menu__item.ws-active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--ws-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Botón central destacado (Reproducir/Buscar) */
.ws-mobile-menu__item--center {
    min-width: auto;
    margin: 0 0.5rem;
}

.ws-mobile-menu__item--center svg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 100%);
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4),
                0 0 0 4px var(--ws-bg-primary),
                0 0 0 6px var(--ws-border);
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ws-mobile-menu__item--center:hover svg {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6),
                0 0 0 4px var(--ws-bg-primary),
                0 0 0 6px var(--ws-primary);
}

.ws-mobile-menu__item--center:active svg {
    transform: translateY(-2px) scale(0.98);
}

.ws-mobile-menu__item--center span {
    color: var(--ws-primary);
}

/* Animaciones */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.5);
    }
}

/* Responsive adicional */
@media (max-width: 480px) {
    .ws-mobile-menu__item {
        min-width: 50px;
        padding: 0.5rem 0.5rem;
    }

    .ws-mobile-menu__item svg {
        width: 22px;
        height: 22px;
    }

    .ws-mobile-menu__item span {
        font-size: 0.5625rem;
    }

    .ws-mobile-menu__item--center svg {
        width: 52px;
        height: 52px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .ws-mobile-menu {
    background: rgba(20, 20, 30, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

/* Ocultar cuando el reproductor esté expandido */
.ws-player-expanded .ws-mobile-menu {
    transform: translateY(100%);
}

/* Badge de notificación (opcional) */
.ws-mobile-menu__item-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-width: 18px;
    height: 18px;
    background: var(--ws-danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid var(--ws-bg-primary);
}
