/* Bottom Navigation Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

/* Efecto de reflejo en el borde superior del menú */
.bottom-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.3) 25%,
        rgba(192, 132, 252, 0.8) 50%,
        rgba(192, 132, 252, 0.3) 75%,
        transparent 100%
    );
    animation: menuShimmer 3s ease-in-out infinite;
}

.bottom-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: menuShimmer 3s ease-in-out infinite reverse;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.menu-item:active {
    transform: scale(0.9);
}

/* Menu Icons */
.menu-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover .menu-icon {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.menu-item:active .menu-icon {
    transform: scale(0.95);
}

/* Center Menu Item (Plus/Upload) */
.menu-item-center {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.menu-item-center .menu-icon {
    color: white !important;
}

.menu-item-center:hover {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.menu-item-center:active {
    transform: translateY(0) scale(0.95);
}

/* Active State */
.menu-item.active .menu-icon {
    color: white;
}

/* Logout Menu Item - Red Color */
.menu-item-logout .menu-icon {
    color: #ef4444 !important;
}

.menu-item-logout:hover .menu-icon {
    color: #dc2626 !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    .bottom-menu {
        height: 75px;
        padding: 0 15px;
    }

    .menu-item {
        width: 45px;
        height: 45px;
    }

    .menu-item-center {
        width: 52px;
        height: 52px;
    }

    .menu-icon svg {
        width: 22px;
        height: 22px;
    }

    .menu-item-center .menu-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Safe area for iPhone X and newer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-menu {
        padding-bottom: calc(env(safe-area-inset-bottom));
        height: calc(80px + env(safe-area-inset-bottom));
    }
}

/* Haptic feedback animation */
.menu-item.tap {
    animation: tapFeedback 0.1s ease-out;
}

@keyframes tapFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Animación del efecto shimmer para el menú */
@keyframes menuShimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Ensure content doesn't overlap with menu */
body {
    padding-bottom: 80px;
}

@media (max-width: 480px) {
    body {
        padding-bottom: 75px;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}
