/* Tab-bar-i i poshtëm celular (_MobileBottomNav). Ndarë nga premium.css që ta ngarkojë
   edhe _FocusLayout (hyrja, regjistrimi), i cili s'merr premium.css-në — prandaj çdo
   variabël ka vlerën rezervë. Në prodhim hyn te site.min.css menjëherë pas premium.css. */

/* Përkufizimi i plotë i tab-bar-it (më parë ishte inline te _Layout.cshtml — u zhvendos
   këtu që të cache-ohet nga shfletuesi). Forma është "IG": tab-e me gjerësi të barabartë,
   ikona outline → filled kur janë aktive, dhe një vijë e hollë treguese sipër tab-it aktiv. */

@media (max-width: 991.98px) {
    body {
        /* Hapësirë për tab-bar-in + safe area e iPhone-it. */
        padding-bottom: calc(var(--gm-tabbar-h, 62px) + var(--gm-safe-b, env(safe-area-inset-bottom, 0px)) + 8px);
    }
}

.mobile-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    height: calc(var(--gm-tabbar-h, 62px) + var(--gm-safe-b, env(safe-area-inset-bottom, 0px)));
    padding-bottom: var(--gm-safe-b, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: color-mix(in oklab, var(--card, #fff) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -1px 0 var(--line, rgba(19,28,51, .10)),
                0 -8px 24px -18px rgba(19,28,51, .4);
}

.mobile-bottomnav .mbn-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 6px 2px;
    color: var(--tx-soft, #4B5168);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--gm-fast, 160ms) var(--gm-ease, ease), color var(--gm-fast, 160ms) ease;
}
.mobile-bottomnav .mbn-item:active { transform: scale(.92); }
.mobile-bottomnav .mbn-item i { font-size: 22px; line-height: 1; }
.mobile-bottomnav .mbn-label { line-height: 1; }
.mobile-bottomnav .mbn-item:hover { color: var(--ink, #131C33); }

/* Treguesi i tab-it aktiv — vija e hollë sipër, si te IG. */
.mobile-bottomnav .mbn-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2.5px;
    border-radius: 0 0 4px 4px;
    background: var(--accent, #EC6A2C);
}
.mobile-bottomnav .mbn-item.active { color: var(--ink, #131C33); }
.mobile-bottomnav .mbn-item.active i { color: var(--ink, #131C33); }

/* Tab-i i profilit mban avatarin e vërtetë — sinjali më i fortë "kjo është llogaria ime". */
.mobile-bottomnav .mbn-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color var(--gm-fast, 160ms) ease;
}
.mobile-bottomnav .mbn-item.active .mbn-avatar {
    border-color: var(--ink, #131C33);
}

/* Shenja e panjohurave mbi ikonën e mesazheve. */
.mobile-bottomnav .mbn-ic-wrap { position: relative; display: inline-flex; }
.mobile-bottomnav .mbn-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 100px;
    background: #D9453C;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--card, #fff);
}

/* Butoni qendror i veprimit — i sheshtë brenda shiritit, jo kuti e ngritur mbi të. */
.mobile-bottomnav .mbn-fab {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--ink, #131C33);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--ink, #131C33) 70%, transparent);
    transition: transform var(--gm-fast, 160ms) var(--gm-ease, ease), background var(--gm-fast, 160ms) ease;
}
.mobile-bottomnav .mbn-fab i { font-size: 21px; }
.mobile-bottomnav .mbn-fab:hover { background: var(--accent, #EC6A2C); color: #fff; }
.mobile-bottomnav .mbn-fab:active { transform: scale(.92); }

/* _FocusLayout s'ka Bootstrap-in: d-lg-none s'ekziston atje. */
@media (min-width: 992px) {
    .mobile-bottomnav { display: none !important; }
}

html[data-theme="dark"] .mobile-bottomnav { background: rgba(19, 28, 51, .94); }
