
/* =====================================
   KWICK MOBILE BOTTOM NAVIGATION
===================================== */

.kwick-bottom-nav {
    display: none;
}

@media (max-width: 991px) {

    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

   
    .kwick-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;

        /* Total height including safe area */
        box-sizing: border-box;
        height: calc(68px + env(safe-area-inset-bottom));

        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));

        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;

        background: var(--bg-card);
        border-top: 1px solid var(--border-color);

        box-shadow: 0 -5px 25px rgba(0,0,0,.07);

        transition: background var(--transition-normal);
    }


    .bottom-nav-item {
        min-width: 0;
        height: 100%;
        padding: 5px 2px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        color: var(--text-muted);
        background: transparent;
        border: 0;
        text-decoration: none;
        cursor: pointer;

        transition: var(--transition-normal);
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-icon {
        width: 42px;
        height: 29px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: var(--radius-pill);
        font-size: 20px;

        transition: var(--transition-normal);
    }

    .bottom-nav-label {
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* Active Navigation */
    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item.active .bottom-nav-icon {
        color: #ffffff;
        background: var(--primary);
    }

    /* Hover / Touch */
    .bottom-nav-item:active .bottom-nav-icon {
        transform: scale(.92);
    }

    .bottom-nav-item:focus-visible {
        outline: 2px solid var(--secondary);
        outline-offset: -2px;
        border-radius: 10px;
    }

    /* Dark Mode */
    [data-theme="dark"] .kwick-bottom-nav {
        background: var(--bg-card);
        border-top-color: var(--border-color);
        box-shadow: 0 -5px 25px rgba(0,0,0,.25);
    }

    [data-theme="dark"] .bottom-nav-item.active {
        color: var(--secondary);
    }

    [data-theme="dark"] .bottom-nav-item.active .bottom-nav-icon {
        background: var(--secondary);
        color: #ffffff;
    }
}

/* Hide on Desktop */
@media (min-width: 992px) {
    .kwick-bottom-nav {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .kwick-bottom-nav,
    .bottom-nav-item,
    .bottom-nav-icon {
        transition: none;
    }
}
