/* /assets/css/navbar.css */

/* =========================================
   TOP NAVIGATION (Floating Pill)
========================================= */
.top-nav-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-top-bg, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 30px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: max-content;
    max-width: 90%;
}

.nav-container .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 200px;
    object-fit: contain;
}


/* =========================================
   BOTTOM NAVIGATION (Fixed Action Bar)
========================================= */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bottom-bg, #000000);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888888;
    padding: 8px 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 70px;
}

.nav-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Hover States */
.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover .nav-icon {
    transform: translateY(-2px);
}

/* --- ACTIVE STATE STYLING --- */
.nav-item.active {
    color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.15); /* Frosted effect over black */
    border-bottom: 3px solid var(--primary-accent);
    border-radius: 10px 10px 0 0; /* Flat bottom for the border */
}

/* =========================================
   ANIMATIONS (Crystal Slide Sheen)
========================================= */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: crystalSlide 2.5s infinite;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (min-width: 768px) {
    /* For larger screens, limit the bottom nav width and center it for a cleaner UI */
    .bottom-nav-bar {
        width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
    
    .nav-item.active {
        border-radius: 10px; /* Fully rounded on desktop */
        border-bottom: none; /* Replace bottom border with a glow */
        box-shadow: inset 0 -3px 0 var(--primary-accent);
    }
}