/* ==================== MOBILE BOTTOM NAV ==================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    z-index: 980;
    padding: 0;
    box-sizing: border-box;
}

.mobile-bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 100%;
    height: 64px;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== NAV ITEM ==================== */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    user-select: none;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item:hover {
    background-color: #F9FAFB;
}

/* ==================== NAV ITEM ICON ==================== */

.nav-item-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
    /* ✅ Default gray filter */
    filter: brightness(0) saturate(100%) invert(48%) sepia(7%) saturate(313%) hue-rotate(182deg) brightness(94%) contrast(86%);
    opacity: 0.6;
}

/* ✅ Active purple filter */
.nav-item-active .nav-item-icon {
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(6932%) hue-rotate(283deg) brightness(93%) contrast(119%);
    opacity: 1;
}

/* ==================== NAV ITEM LABEL ==================== */

.nav-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    margin: 0;
    font-family: 'PlusJakartaSans', -apple-system, sans-serif;
    text-align: center;
    transition: color 0.3s ease, font-weight 0.3s ease;
    white-space: nowrap;
}

.nav-item-active .nav-item-label {
    color: #B704F6;
    font-weight: 600;
}

/* ==================== MOBILE RESPONSIVE (max-width: 1020px) ==================== */

@media (max-width: 1020px) {
    .mobile-bottom-nav {
        display: block;
    }
}

/* ==================== TABLET (max-width: 768px) ==================== */

@media (max-width: 768px) {
    .mobile-bottom-nav-container {
        height: 60px;
        padding: 0;
    }

    .nav-item {
        padding: 0.375rem 0.75rem;
        gap: 0.1875rem;
    }

    .nav-item-icon-wrapper {
        width: 22px;
        height: 22px;
    }

    .nav-item-icon {
        width: 22px;
        height: 22px;
    }

    .nav-item-label {
        font-size: 0.6875rem;
    }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */

@media (max-width: 480px) {
    .mobile-bottom-nav-container {
        height: 56px;
    }

    .nav-item {
        padding: 0.25rem 0.5rem;
        gap: 0.125rem;
    }

    .nav-item-icon-wrapper {
        width: 20px;
        height: 20px;
    }

    .nav-item-icon {
        width: 20px;
        height: 20px;
    }

    .nav-item-label {
        font-size: 0.625rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */

.nav-item:focus-visible {
    outline: 2px solid #B704F6;
    outline-offset: -2px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-item,
    .nav-item-icon,
    .nav-item-label {
        transition: none;
    }

    .nav-item:active {
        transform: none;
    }
}
