/* navigation.css */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: var(--homeza-frame-width);
    margin: 0 auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--homeza-nav-height);
    padding: 0 8px var(--homeza-bottom-inset);
    flex-shrink: 0;
    z-index: 1000;
}

/* The test badge stays clear of the bottom navigation and its icons. */
#testEnvBanner.test-badge-above-nav { --test-badge-bottom: calc(var(--homeza-nav-height) + 6px); }

.nav-item {
    display: grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 36px;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease;
}

.nav-item.active .nav-icon {
    color: var(--accent-ink);
    background: var(--primary-very-light);
}
.nav-item .homeza-icon { width: 22px; height: 22px; stroke-width: 1.75; }
.nav-item.active .homeza-icon { stroke-width: 2; }
.nav-item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -1px; }
.nav-item:active .nav-icon { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
    .nav-icon { transition: none; }
}
