/* Mobile Bottom Navigation */
/* Only visible on mobile devices (max-width: 768px) */

.mobile-bottom-nav {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(30, 7, 54, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    z-index: 1030; /* Below Bootstrap modal (1050) and backdrop (1040) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav .nav-item,
.mobile-bottom-nav .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 245, 230, 0.6);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item i,
.mobile-bottom-nav .mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    transition: all 0.25s ease;
}

.mobile-bottom-nav .nav-item span,
.mobile-bottom-nav .mobile-nav-item span {
    transition: all 0.25s ease;
}

/* Hover state */
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .mobile-nav-item:hover {
    color: rgba(244, 176, 0, 0.8);
}

/* Active state */
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .mobile-nav-item.active {
    color: #F4B000;
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .mobile-nav-item.active i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(244, 176, 0, 0.6);
}

.mobile-bottom-nav .nav-item.active::before,
.mobile-bottom-nav .mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #E63E8C, #F4B000);
    border-radius: 0 0 4px 4px;
}

/* Show on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 85px !important;
    }
}

/* iPhone X and newer - handle home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(70px + env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        body {
            padding-bottom: calc(85px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Animation for icon tap feedback */
.mobile-bottom-nav .nav-item:active i,
.mobile-bottom-nav .mobile-nav-item:active i {
    transform: scale(0.9);
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-bottom-nav {
        height: 56px;
    }
    
    .mobile-bottom-nav .nav-item i,
    .mobile-bottom-nav .mobile-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0.15rem;
    }
    
    .mobile-bottom-nav .nav-item span,
    .mobile-bottom-nav .mobile-nav-item span {
        font-size: 0.65rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .mobile-bottom-nav .nav-item span,
    .mobile-bottom-nav .mobile-nav-item span {
        font-size: 0.6rem;
    }
    
    .mobile-bottom-nav .nav-item i,
    .mobile-bottom-nav .mobile-nav-item i {
        font-size: 1.2rem;
    }
}
