/* ============================================================
   STRAATZAKEN026 — Bottom Navigation (Mobile)
   ============================================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Glassmorphism Effect */
    background: rgba(30, 41, 59, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0;
    z-index: 9997;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-link:hover,
.bottom-nav-link:focus,
.bottom-nav-link.active {
    color: #D4A017;
}

.bottom-nav-link.active {
    color: #D4A017;
}

.bottom-nav-link.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #D4A017;
    border-radius: 0 0 3px 3px;
}

.bottom-nav-icon {
    width: 18px;
    height: 18px;
    stroke: #94A3B8;
    stroke-width: 1.75;
    display: block;
    margin: 0 auto 0.25rem;
    transition: transform 0.2s ease, filter 0.2s ease, stroke 0.2s ease;
}

.bottom-nav-link:hover .bottom-nav-icon,
.bottom-nav-link.active .bottom-nav-icon {
    stroke: #EAAA00;
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(234, 170, 0, 0.5));
}

.bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(14px);
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Show on mobile only */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* Add padding to main content to account for bottom nav */
    .site-main {
        padding-bottom: 5rem !important;
    }
    
    /* Adjust admin main content */
    .admin-main {
        padding-bottom: 5rem !important;
    }
}

/* Safe area inset for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        .site-main,
        .admin-main {
            padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Active indicator dot */
.bottom-nav-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #D4A017;
    border-radius: 50%;
}

/* Animation on tap */
@keyframes bottomNavTap {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.bottom-nav-link:active {
    animation: bottomNavTap 0.2s ease;
}

/* Search bar in bottom nav */
.bottom-nav-search {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav-search {
        display: block;
        padding: 0 1rem 0.5rem;
    }
    
    .bottom-nav-search-input {
        width: 100%;
        padding: 0.625rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: white;
        font-size: 0.875rem;
    }
    
    .bottom-nav-search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .bottom-nav-search-input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: #D4A017;
    }
}
