/* Mobile Bottom Navigation Styles */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg, #ffffff);
    border-top: 1px solid var(--border-color, #dee2e6);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1020;
    box-shadow: 0 -2px 10px var(--shadow, rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Navigation Items */
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary, #6c757d);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 80px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item span:not(.cart-badge) {
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Active State */
.mobile-bottom-nav .nav-item.active {
    color: var(--brand-primary, #d63384);
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

/* Hover Effect */
.mobile-bottom-nav .nav-item:active {
    transform: scale(0.95);
}

/* Cart Badge */
.mobile-bottom-nav .nav-item-cart {
    position: relative;
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--danger, #dc3545);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: bounceIn 0.5s ease;
}

/* Ripple Effect */
.nav-ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-primary, #d63384);
    opacity: 0.3;
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Hide bottom nav when scrolling down (optional) */
.mobile-bottom-nav.hidden {
    transform: translateY(100%);
}

/* Safe area for devices with notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* Accessibility */
.mobile-bottom-nav .nav-item:focus {
    outline: 2px solid var(--brand-primary, #d63384);
    outline-offset: 2px;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .mobile-bottom-nav {
    background: var(--navbar-bg, #1a1a1a);
    border-top-color: var(--border-color, #3a3a3a);
}

/* Gradient Background (Optional) */
.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--navbar-bg, #ffffff));
    pointer-events: none;
}

/* Active Indicator Line */
.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--brand-primary, #d63384);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Small screens optimization */
@media (max-width: 375px) {
    .mobile-bottom-nav .nav-item {
        padding: 6px 8px;
        max-width: 70px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.3rem;
    }

    .mobile-bottom-nav .nav-item span:not(.cart-badge) {
        font-size: 0.65rem;
    }
}
