/*
 * COMPONENT: Mobile Bottom Nav
 * 
 * - Fixed Bottom
 * - Z-Index High
 * - Mobile Only
 */

.bottom-nav {
    display: none;
    /* Desktop Hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    /* Below modals, above content */
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-tertiary);
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-fast);
}

.nav-item.active,
.nav-item:hover {
    color: var(--color-ink-primary);
}

.nav-item.active svg {
    color: var(--color-accent);
}

/* Show only in PWA standalone mode on mobile */
@media (max-width: 768px) and (display-mode: standalone) {
    .bottom-nav {
        display: flex;
    }
}

/* Alternative for iOS Safari which doesn't support display-mode */
@media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        .bottom-nav {
            display: none;
        }

        /* Show only when running as PWA (has standalone meta tag active) */
        html.standalone .bottom-nav {
            display: flex;
        }
    }
}