/* footer.css - Page footer. */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    margin-top: 2rem;
}

.site-footer__inner {
    max-width: var(--max-page);
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    text-align: center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.1rem;
    margin-bottom: .9rem;
}
.site-footer__nav a { color: var(--text-muted); font-size: .88rem; }
.site-footer__nav a:hover { color: var(--brand); }

.site-footer__note {
    color: var(--text-muted);
    font-size: .8rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .site-footer__inner { padding: 1.25rem 0.75rem 2rem; }
    .site-footer__nav { gap: .5rem 1rem; }
    .site-footer__nav a { font-size: .82rem; }
}

/* ---------- Fixed Mobile Bottom Navigation Bar ---------- */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 640px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: center;
        backdrop-filter: blur(10px);
    }
    .mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        flex: 1;
        min-height: 48px;
        background: transparent;
        border: 0;
        color: var(--text-muted);
        text-decoration: none !important;
        cursor: pointer;
        font: inherit;
        transition: color 0.15s var(--ease), transform 0.1s var(--ease);
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item.is-active {
        color: var(--brand);
    }
    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
        transform: scale(1.1);
    }
    .mobile-bottom-nav__label {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.01em;
    }
    /* Add padding to page main so bottom nav never overlaps page content */
    .site-main {
        padding-bottom: 5rem !important;
    }
}