/* public/css/bnav.css */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* Ensure the body doesn't get cut off by the fixed nav */
body.has-bottom-nav {
    padding-bottom: 80px !important;
}

.bottom-nav-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important; /* Fixed height to ensure it exists */
    background-color: #000000 !important; /* Pure Black */
    border-top: 1px solid #27272a !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    /* Highest possible z-index to stay on top of everything */
    z-index: 999999 !important; 
    
    /* Ensure it receives clicks and doesn't let them pass through */
    pointer-events: auto !important;
    
    /* Support for modern mobile notches */
    padding-bottom: env(safe-area-inset-bottom) !important;
    box-sizing: border-box !important;
}

.bottom-nav-inner {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 480px !important;
    padding: 0 10px !important;
}

.bnav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 46px !important;
    background-color: #1c1c1e !important; /* Dark Gray button */
    border-radius: 24px !important; /* Pill shape */
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Material Icon Sizing */
.bnav-item .material-icons-round {
    font-size: 26px !important;
    pointer-events: none !important; /* Let the click go to the <a> tag */
}

/* ACTIVE STATE: High Contrast B&W */
.bnav-item.active {
    background-color: #ffffff !important; /* Pure White */
    color: #000000 !important; /* Pure Black Icon */
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

/* Latest Updates Indicator Dot */
.bnav-dot {
    position: absolute !important;
    bottom: 8px !important;
    right: 14px !important;
    width: 8px !important;
    height: 8px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    border: 2px solid #1c1c1e !important;
    pointer-events: none !important;
}

.bnav-item.active .bnav-dot {
    background: #000000 !important;
    border-color: #ffffff !important;
}

/* Hide on Desktop Devices */
@media (min-width: 1025px) {
    .bottom-nav-container {
        display: none !important;
    }
}
