/* ============================================================
   Azura Mobile Glass Dock - liquid-glass footer nav
   Mobile only - hidden on tablet/desktop.
   All assets are local (theme CSS + already-loaded icon font),
   no extra network requests, so this does not add page-load weight.

   Layered like real glassmorphism (filter/overlay/specular), with an
   SVG feTurbulence/feDisplacementMap for a subtle liquid-glass refraction.
   Text/icons use a moderate-opacity blue tint + shadow so they stay
   readable no matter what color is behind the glass (see note in
   functions.php - full transparency via mix-blend-mode was tested and
   breaks together with backdrop-filter, so this is the reliable version).
   ============================================================ */

.azura-glass-footer {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 999998;
    width: calc(100% - 24px);
    max-width: 420px;
    border-radius: 30px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* وقتی منوی موبایل بازه، دکِ شیشه‌ای بره پایین و از دید خارج بشه */
.azura-glass-footer.agf-hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.azura-glass-footer .agf-filter,
.azura-glass-footer .agf-overlay,
.azura-glass-footer .agf-specular {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.azura-glass-footer .agf-filter {
    z-index: 1;
    -webkit-backdrop-filter: blur(6px) saturate(140%) brightness(1.05);
    backdrop-filter: blur(6px) saturate(140%) brightness(1.05);
    filter: url(#azura-glass-distortion);
}

.azura-glass-footer .agf-overlay {
    z-index: 2;
    background: rgba(var(--colorMainRGB), 0.78);
}

.azura-glass-footer .agf-specular {
    z-index: 3;
    box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.azura-glass-footer .agf-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.azura-glass-footer .agf-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 3px;
    /* فاز ۵ — انحراف عمدی: آیتم دکِ پایین موبایل تب است نه دکمه
       (آیکون روی برچسب، پنج‌تایی). فقط گردی‌اش از توکن آمد. */
    border-radius: var(--azura-radius-card, 20px);
    color: #fff;
    text-decoration: none !important;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.azura-glass-footer .agf-item i {
    font-size: 17px;
    line-height: 1;
}

.azura-glass-footer .agf-item:active {
    transform: scale(0.9);
}

/* Current page indicator - highlighted pill, like the native tab bar */
.azura-glass-footer .agf-item.active {
    background: rgba(255, 255, 255, 0.9);
    color: #14161f;
}

.azura-glass-footer .agf-item.active i {
    color: var(--azura-blue, var(--colorSecondary));
}

@media (max-width: 820px) {
    .azura-glass-footer {
        display: block;
    }

    body.azura-has-glass-dock {
        padding-bottom: 84px;
    }
}