/* ============================================
   NAVIGATION COMPONENTS
   ============================================ */

/* Bottom Navigation - Redesigned & Animated */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--px-72);
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: var(--px-8) 0;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all var(--transition-smooth);
    overflow: visible;
    text-decoration: unset;
}

    .nav-item::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: var(--px-32);
        height: var(--px-4);
        background: var(--color-green);
        border-radius: 0 0 var(--px-4) var(--px-4);
        opacity: 0;
        transform-origin: top;
        transition: all var(--transition-smooth);
    }

    .nav-item.active::before {
        opacity: 1;
    }

    .nav-item.active {
        color: var(--color-green);
    }

        .nav-item.active .nav-icon {
            transform: translateY(-2px);
        }

        .nav-item.active .nav-label {
            font-weight: 600;
        }

    .nav-item:not(.nav-scan):hover {
        color: var(--color-green);
    }

        .nav-item:not(.nav-scan):hover .nav-icon {
            transform: translateY(-2px);
        }

.nav-scan {
    flex: 1;
    margin: 0 var(--px-8);
}

.scan-button {
    position: absolute;
    top: calc(-1 * var(--px-28));
    left: 50%;
    transform: translateX(-50%);
    width: var(--px-56);
    height: var(--px-56);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-btn) 0%, var(--bg-btn) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), 0 8px 24px rgba(16, 185, 129, 0.3);
    border: 4px solid white;
    transition: all var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.nav-scan:hover .scan-button {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 10px 28px rgba(16, 185, 129, 0.4);
    animation: none;
}

.nav-scan:active .scan-button {
    transform: translateX(-50%) scale(0.95);
}

.nav-icon {
    width: var(--px-24);
    height: var(--px-24);
    margin-bottom: var(--px-4);
    transition: all var(--transition-smooth);
}

.nav-icon-large {
    width: var(--px-28);
    height: var(--px-28);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-label {
    font: normal normal 400 var(--s-14);
    letter-spacing: -0.2px;
    transition: all var(--transition-smooth);
}

.nav-scan .nav-label {
    margin-top: var(--px-24);
    color: var(--color-green);
    font-weight: 600;
}

.nav-item:not(.nav-scan):active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--px-64);
    height: var(--px-64);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Desktop view - hide bottom nav */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}
