/*
 * Licej — premium mobilni meni (sa desne strane) i WhatsApp kontakt (IQ Media)
 * Lokacija na sajtu: wp-content/themes/astra-child/licej-mobile.css
 * Učitava ga mu-plugin licej-unify.php: pregled uz ?licej_m=1, za sve posle odobrenja (LICEJ_MOBILE_LIVE).
 * Oslanja se na promenljive iz licej-hf.css (--lhf-*), sa rezervnim vrednostima.
 *
 * PRAVILO: tipografija se NE menja (font-family, font-size, font-weight, line-height, letter-spacing).
 */

/* ---------- Bočni meni: otvara se sa desne strane ---------- */
@media (max-width: 921px) {
    #ast-mobile-popup .ast-mobile-popup-inner {
        left: auto !important;
        right: 0 !important;
        width: 88% !important;
        max-width: 400px !important;
        transform: translateX(105%) !important;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease !important;
        border-right: 0 !important;
        border-left: 3px solid var(--lhf-gold, #e8b84b) !important;
        box-shadow: -24px 0 60px rgba(8, 24, 51, 0.35);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    #ast-mobile-popup.active .ast-mobile-popup-inner {
        transform: translateX(0) !important;
    }
    #ast-mobile-popup .ast-mobile-popup-overlay {
        background: rgba(8, 24, 51, 0.55) !important;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    /* Zaglavlje menija: beli logo levo, okruglo dugme za zatvaranje desno. */
    #ast-mobile-popup .ast-mobile-popup-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }
    #ast-mobile-popup .lhf-drawer-brand img {
        display: block;
        height: 38px;
        width: auto;
    }
    #ast-mobile-popup .menu-toggle-close {
        width: 40px;
        height: 40px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 50% !important;
        background: transparent !important;
        position: static !important;
        margin: 0 !important;
    }
    #ast-mobile-popup .menu-toggle-close:hover {
        border-color: var(--lhf-gold, #e8b84b) !important;
    }

    /* Stavke menija: malo vazduha sa strane, zlatna oznaka trenutne stranice. */
    #ast-mobile-popup .ast-mobile-popup-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }
    #ast-mobile-popup .main-header-menu > .menu-item > .menu-link {
        padding-left: 24px !important;
        padding-right: 56px !important;
    }
    #ast-mobile-popup .main-header-menu > .menu-item.current-menu-item > .menu-link,
    #ast-mobile-popup .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
        box-shadow: inset 3px 0 0 var(--lhf-gold, #e8b84b);
    }

    /* Donji blok: CTA, poziv, WhatsApp, mreže. */
    .lhf-drawer-extra {
        margin-top: auto;
        padding: 24px 20px 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.03);
    }
    .lhf-drawer-note {
        margin: 0 0 14px;
        color: var(--lhf-gold, #e8b84b);
        text-align: center;
    }
    .lhf-drawer-cta,
    .lhf-drawer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        border-radius: 10px;
        text-decoration: none !important;
        transition: filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }
    .lhf-drawer-cta {
        background: #e8475a;
        color: #fff !important;
        box-shadow: 0 8px 22px rgba(232, 17, 35, 0.28);
        margin-bottom: 12px;
    }
    .lhf-drawer-cta:hover {
        filter: brightness(0.95);
    }
    .lhf-drawer-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lhf-drawer-btn {
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #fff !important;
        background: transparent;
    }
    .lhf-drawer-btn:hover {
        border-color: var(--lhf-gold, #e8b84b);
        background: rgba(232, 184, 75, 0.10);
    }
    .lhf-drawer-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
        flex: 0 0 auto;
    }
    .lhf-drawer-btn.is-wa svg {
        fill: #25d366;
    }
    .lhf-drawer-social {
        display: flex !important;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }
    .lhf-drawer-social .footer-social-inner-wrap {
        display: flex !important;
        justify-content: center;
        gap: 12px;
    }
    .lhf-drawer-social .ast-builder-social-element {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.24) !important;
        border-radius: 50% !important;
        background: transparent !important;
    }
    .lhf-drawer-social .ast-builder-social-element svg {
        width: 16px !important;
        height: 16px !important;
        fill: #fff !important;
    }
}
/* Na desktopu blok se ne prikazuje (meni je u header-u). */
@media (min-width: 922px) {
    .lhf-drawer-extra,
    .lhf-drawer-brand {
        display: none !important;
    }
}

/* ---------- Plutajuće WhatsApp dugme (svi uređaji) ---------- */
.lhf-wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 98;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    box-shadow: 0 10px 28px rgba(8, 24, 51, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lhf-wa-float:hover,
.lhf-wa-float:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(8, 24, 51, 0.32), 0 0 0 4px rgba(255, 255, 255, 0.95);
}
.lhf-wa-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
/* Dugme „na vrh” ide iznad WhatsApp dugmeta. */
#ast-scroll-top {
    right: 30px !important;
    bottom: 92px !important;
}
/* Dok je bočni meni otvoren, WhatsApp dugme se sklanja (ima ga u meniju). */
body.ast-main-header-nav-open .lhf-wa-float,
body.ast-popup-nav-open .lhf-wa-float,
html.ast-off-canvas-active .lhf-wa-float {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 544px) {
    .lhf-wa-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    #ast-scroll-top {
        right: 22px !important;
        bottom: 80px !important;
    }
}
