/**
 * BTFC Stats Independent Menu System - Mobile Footer Nav
 *
 * Modern fixed bottom tab bar for primary mobile shortcuts.
 *
 * @package BTFC_Stats
 * @since 1.0.0
 */

:root {
    --btfc-mobile-footer-height: 64px;
    --btfc-mobile-footer-gap: 12px;
    --btfc-mobile-footer-z: 10050;
    --btfc-mobile-footer-bg: #061527;
    --btfc-mobile-footer-inactive: rgba(255, 255, 255, 0.55);
    --btfc-mobile-footer-inactive-label: rgba(255, 255, 255, 0.42);
    --btfc-mobile-footer-active: var(--btfc-menu-accent, #F5B800);
}

.btfc-mobile-footer-nav,
.btfc-mobile-footer-nav-spacer {
    display: none;
}

@media (max-width: 768px) {
    .btfc-mobile-footer-nav-spacer {
        display: block;
        height: calc(var(--btfc-mobile-footer-height) + var(--btfc-mobile-footer-gap) + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    .btfc-mobile-footer-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--btfc-mobile-footer-z);
        background: var(--btfc-mobile-footer-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: env(safe-area-inset-bottom, 0);
        font-family: var(--btfc-menu-font-family, 'Montserrat', sans-serif);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .btfc-mobile-footer-nav__list {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        list-style: none;
        margin: 0;
        padding: 0 4px;
        min-height: var(--btfc-mobile-footer-height);
    }

    .btfc-mobile-footer-nav__item {
        flex: 1 1 0;
        margin: 0;
        min-width: 0;
    }

    .btfc-mobile-footer-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: var(--btfc-mobile-footer-height);
        padding: 10px 4px 8px;
        color: var(--btfc-mobile-footer-inactive);
        text-decoration: none;
        touch-action: manipulation;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

    .btfc-mobile-footer-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        line-height: 0;
    }

    .btfc-mobile-footer-nav__icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .btfc-mobile-footer-nav__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.01em;
        line-height: 1.2;
        color: var(--btfc-mobile-footer-inactive-label);
        transition: color 0.2s ease;
    }

    .btfc-mobile-footer-nav__link:hover,
    .btfc-mobile-footer-nav__link:focus {
        color: rgba(255, 255, 255, 0.9);
        outline: none;
    }

    .btfc-mobile-footer-nav__link:hover .btfc-mobile-footer-nav__label,
    .btfc-mobile-footer-nav__link:focus .btfc-mobile-footer-nav__label {
        color: rgba(255, 255, 255, 0.75);
    }

    .btfc-mobile-footer-nav__link:focus-visible {
        outline: 2px solid var(--btfc-mobile-footer-active);
        outline-offset: -4px;
        border-radius: 8px;
    }

    .btfc-mobile-footer-nav__item.is-current .btfc-mobile-footer-nav__link,
    .btfc-mobile-footer-nav__item.is-current .btfc-mobile-footer-nav__label {
        color: var(--btfc-mobile-footer-active);
    }

    .btfc-mobile-footer-nav__item.is-current .btfc-mobile-footer-nav__icon svg {
        stroke-width: 2;
    }
}

@media (min-width: 769px) {
    .btfc-mobile-footer-nav,
    .btfc-mobile-footer-nav-spacer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btfc-mobile-footer-nav__link,
    .btfc-mobile-footer-nav__label {
        transition: none !important;
    }
}
