
/* MOBILDA V4 — MOBILE TABBAR V2 */

nav.tabbar {
    --tab-glass: rgba(15, 23, 32, .82);
    --tab-solid: #151d26;
    --tab-ink: #d3dae2;
    --tab-active: #ff9638;
    --tab-border: rgba(255,255,255,.15);
    --tab-popup: #19222d;

    background: var(--tab-solid);
    border-top: 1px solid var(--tab-border);
    box-shadow: 0 -5px 25px rgba(0,0,0,.12);
    overflow: visible;
}

html[data-theme="light"] nav.tabbar {
    --tab-glass: rgba(247,249,252,.86);
    --tab-solid: #f5f7fa;
    --tab-ink: #505c6b;
    --tab-active: #ba550c;
    --tab-border: rgba(30,40,55,.16);
    --tab-popup: #ffffff;
}

@supports (
    (backdrop-filter: blur(20px)) or
    (-webkit-backdrop-filter: blur(20px))
) {
    nav.tabbar {
        background: var(--tab-glass);
        backdrop-filter: blur(20px) saturate(155%);
        -webkit-backdrop-filter: blur(20px) saturate(155%);
    }
}

nav.tabbar > a,
nav.tabbar > .tabitem > summary {
    color: var(--tab-ink);
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    min-width: 0;
    border-radius: 12px;
}

nav.tabbar > a > svg,
nav.tabbar > .tabitem > summary > svg {
    display: block;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

nav.tabbar > a.on,
nav.tabbar > a.hot,
nav.tabbar > .tabitem[open] > summary {
    color: var(--tab-active);
}

nav.tabbar > a:focus-visible,
nav.tabbar > .tabitem > summary:focus-visible {
    outline: 2px solid var(--tab-active);
    outline-offset: -2px;
}

nav.tabbar > .tabitem {
    position: relative;
    overflow: visible;
}

nav.tabbar > .tabitem > summary {
    list-style: none;
    cursor: pointer;
}

nav.tabbar > .tabitem > summary::-webkit-details-marker {
    display: none;
}

nav.tabbar .favcount {
    background: #d93643;
    color: #fff;
    font-size: 10px;
}

nav.tabbar .moremenu {
    position: absolute;
    top: auto;
    bottom: calc(100% + 12px);
    left: auto;
    right: 4px;
    width: min(280px, calc(100vw - 24px));
    max-height: 55vh;
    overflow-y: auto;
    background: var(--tab-popup);
    border: 1px solid var(--tab-border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

nav.tabbar .moremenu a {
    color: var(--tab-ink);
    font-size: 14px;
}

@media (max-width: 350px) {
    nav.tabbar > a,
    nav.tabbar > .tabitem > summary {
        font-size: 9px;
        gap: 3px;
    }

    nav.tabbar > a > svg,
    nav.tabbar > .tabitem > summary > svg {
        width: 21px;
        height: 21px;
    }
}
