/**
 * Footer Navigation Styles - Bottom Nav Bar
 * Fixed position navigation that stays at bottom while content scrolls
 */

/* Bottom Navigation Bar - FIXED at bottom by default */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #00A651;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    min-height: 70px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 15px 15px 0 0;
}

/* Navigation Item */
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.bottom-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bottom-nav .nav-item:active {
    transform: scale(0.95);
}

/* Navigation Icon */
.bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.bottom-nav .nav-item.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Navigation Label */
.bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 500;
    color: inherit;
}

/* Active State */
.bottom-nav .nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Cart Count Badge */
.bottom-nav .cart-count {
    position: absolute;
    top: 0;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* Dark Mode Support */
html.dark-mode .bottom-nav,
body.dark-mode .bottom-nav {
    background: linear-gradient(135deg, #1e3a2f 0%, #0d1f17 100%);
    border-top: 1px solid rgba(0, 166, 81, 0.3);
}

html.dark-mode .bottom-nav .nav-item,
body.dark-mode .bottom-nav .nav-item {
    color: rgba(255, 255, 255, 0.6);
}

html.dark-mode .bottom-nav .nav-item.active,
body.dark-mode .bottom-nav .nav-item.active {
    background-color: rgba(0, 166, 81, 0.3);
    color: #00ff87;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .bottom-nav .nav-item {
        padding: 6px 10px;
    }

    .bottom-nav .nav-icon {
        width: 20px;
        height: 20px;
    }

    .bottom-nav .nav-item span {
        font-size: 9px;
    }
}