/**
 * PWA Bottom Navigation Bar
 * Sticky navigation with translucent blur effect
 */

.sa-pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 81, 162, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown via JS */
}

/* Show on mobile and PWA */
@media (max-width: 768px) {
    .sa-pwa-bottom-nav.is-visible {
        display: block;
    }
}

/* PWA specific display */
@media (display-mode: standalone) {
    .sa-pwa-bottom-nav.is-visible {
        display: block;
    }
}

.sa-pwa-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.sa-pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 60px;
    flex: 1;
    max-width: 100px;
}

.sa-pwa-nav-item:hover,
.sa-pwa-nav-item:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sa-pwa-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.sa-pwa-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.sa-pwa-nav-label {
    font-size: 0.688rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Add padding to body when nav is visible to prevent content from being hidden */
body.sa-pwa-nav-active {
    padding-bottom: 70px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .sa-pwa-nav-container {
        padding: 0 0.5rem;
    }
    
    .sa-pwa-nav-item {
        padding: 0.5rem 0.5rem;
        min-width: 50px;
    }
    
    .sa-pwa-nav-icon {
        font-size: 1.375rem;
    }
    
    .sa-pwa-nav-label {
        font-size: 0.625rem;
    }
}

/* Support for older browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .sa-pwa-bottom-nav {
        background: rgba(10, 81, 162, 0.95);
    }
}
