/* Mobile Bottom Navigation - Enhanced */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 4px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    min-height: 60px;
}

.mobile-nav-item i {
    font-size: 26px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    line-height: 1;
    display: block;
}

.mobile-nav-item i:before {
    display: block;
    line-height: 1;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* Hover and active states - Blue theme */
.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #2563eb;
    text-decoration: none;
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    color: #2563eb;
    transform: scale(1.15);
}

/* Enhanced active state with background indicator */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #2563eb;
    border-radius: 0 0 3px 3px;
}

/* Badge styling - More prominent */
.mobile-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    border: 2px solid #fff;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Add bottom padding to body content to avoid overlap with bottom nav */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }
    
    .site-content {
        margin-bottom: 20px;
    }
    
    /* Ensure footer doesn't overlap */
    .footer {
        padding-bottom: 20px;
    }
}

/* Active state animation */
.mobile-nav-item.active {
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Touch feedback */
.mobile-nav-item:active {
    background: rgba(58, 154, 237, 0.1);
    border-radius: 8px;
}

