/* Mobile Bottom Menu - CanvasOf Style */

.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    
    z-index: 1000;
    display: none;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 991px) {
    .mobile-bottom-menu {
        display: flex;
    }
    
    /* Add padding to main content to prevent overlap */
    main {
        padding-bottom: 70px;
    }
    
    footer {
        margin-bottom: 70px;
    }
}

.mobile-bottom-menu-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 8px;
    list-style: none;
    margin: 0;
}

.mobile-bottom-menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 12px;
    min-width: 0;
}

.mobile-bottom-menu-item:hover,
.mobile-bottom-menu-item:focus {
    color: #1B3250;
    text-decoration: none;
}

.mobile-bottom-menu-item.active {
    color: #1B3250;
}

.mobile-bottom-menu-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #1B3250;
    border-radius: 0 0 3px 3px;
}

.mobile-bottom-menu-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.mobile-bottom-menu-icon.feather.icon-feather-search {
    color: #1B3250;
}

.mobile-bottom-menu-icon.feather.icon-feather-message-circle {
    color: #1B3250;
}

.mobile-bottom-menu-item.active .mobile-bottom-menu-icon {
    transform: scale(1.1);
}

.mobile-bottom-menu-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-bottom-menu-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #1B3250;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}

/* Animation for active state */
@keyframes bottomMenuPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.mobile-bottom-menu-item.active .mobile-bottom-menu-icon {
    animation: bottomMenuPulse 0.3s ease;
}

/* Safe area for devices with notch */
@supports (padding: max(0px)) {
    .mobile-bottom-menu {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}
