/* FluentShare 1.0.1 */

/* ---------- button in feed footer ---------- */
.feed_footer ul li.fshare_btn_wrap .el-icon { font-size: 20px; }
.feed_footer ul li.fshare_btn_wrap .fshare_label { margin-left: 6px; font-size: 14px; }
.feed_footer ul li.fshare_btn_wrap:focus-visible { outline: 2px solid var(--fshare-accent); outline-offset: 1px; border-radius: 5px; }
.fcom_feed_card_footer .fshare_card_btn .el-icon { font-size: 19px; }

/* ---------- tokens ---------- */
:root {
    --fshare-accent: #0088ff;
    --fshare-bg: var(--fcom-primary-bg, #ffffff);
    --fshare-bg-soft: var(--fcom-active-bg, #f0f2f5);
    --fshare-text: var(--fcom-primary-text, #19283a);
    --fshare-muted: var(--fcom-text-off, #6b7280);
    --fshare-border: var(--fcom-primary-border, #e4e7eb);
    --fshare-backdrop: rgba(15, 18, 24, .55);
}
html.dark {
    --fshare-bg: var(--fcom-secondary-bg, #2b2e33);
    --fshare-bg-soft: var(--fcom-active-bg, #373a40);
    --fshare-text: var(--fcom-primary-text, #f0f2f5);
    --fshare-muted: var(--fcom-text-off, #a6abb3);
    --fshare-border: var(--fcom-primary-border, #42464d);
    --fshare-backdrop: rgba(0, 0, 0, .7);
}

/* ---------- overlay + modal ---------- */
.fshare_overlay {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: var(--fshare-backdrop);
    opacity: 0; transition: opacity .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.fshare_overlay.is_open { opacity: 1; }
.fshare_overlay *, .fshare_overlay *::before, .fshare_overlay *::after { box-sizing: border-box; }

.fshare_modal {
    width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto;
    background: var(--fshare-bg); color: var(--fshare-text);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25), 0 0 0 1px var(--fshare-border);
    padding: 18px 20px 22px;
    transform: translateY(12px) scale(.98); transition: transform .2s ease;
    font-family: inherit; line-height: 1.4;
}
.fshare_overlay.is_open .fshare_modal { transform: none; }

.fshare_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fshare_head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--fshare-text); }
.fshare_close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin: -6px -8px -6px 0; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--fshare-muted); cursor: pointer;
}
.fshare_close:hover, .fshare_close:focus-visible { background: var(--fshare-accent) !important; color: #fff !important; }

/* preview card */
.fshare_preview {
    display: flex; gap: 12px; align-items: stretch;
    border: 1px solid var(--fshare-border); border-radius: 12px; overflow: hidden;
    background: var(--fshare-bg-soft); margin-bottom: 14px; min-height: 84px;
}
.fshare_preview_img { position: relative; flex: 0 0 112px; background: var(--fshare-border); }
.fshare_preview_img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fshare_preview_play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.fshare_preview_play svg { width: 100%; height: 100%; display: block; }
.fshare_preview_body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 0; min-width: 0; flex: 1; }
.fshare_preview_body:first-child { padding-left: 12px; }
.fshare_preview_host { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--fshare-muted); }
.fshare_preview_title { font-size: 14px; font-weight: 600; color: var(--fshare-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fshare_preview_desc { font-size: 13px; color: var(--fshare-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fshare_preview.is_loading .fshare_preview_body span {
    display: block; height: 10px; border-radius: 5px; background: var(--fshare-border);
    animation: fshare_pulse 1.2s ease-in-out infinite;
}
.fshare_preview.is_loading .fshare_preview_body span:nth-child(1) { width: 30%; }
.fshare_preview.is_loading .fshare_preview_body span:nth-child(2) { width: 85%; height: 13px; margin-top: 4px; }
.fshare_preview.is_loading .fshare_preview_body span:nth-child(3) { width: 65%; }
@keyframes fshare_pulse { 50% { opacity: .45; } }

.fshare_note { margin: -6px 0 14px; font-size: 12.5px; color: var(--fshare-muted); }

/* copy link */
.fshare_link {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--fshare-border); border-radius: 12px;
    padding: 5px 5px 5px 12px; margin-bottom: 18px; background: var(--fshare-bg);
}
.fshare_link:focus-within { border-color: var(--fshare-accent); box-shadow: 0 0 0 3px rgba(0, 136, 255, .15); }
.fshare_link_icon { display: inline-flex; color: var(--fshare-muted); }
.fshare_link_icon svg { width: 18px; height: 18px; }
.fshare_link input {
    flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important;
    color: var(--fshare-text); font-size: 14px; padding: 6px 0; margin: 0; height: auto;
    text-overflow: ellipsis;
}
.fshare_copy {
    flex: 0 0 auto; border: 0; border-radius: 9px; cursor: pointer;
    padding: 9px 14px; font-size: 14px; font-weight: 600; line-height: 1;
    background: var(--fshare-accent); color: #fff; white-space: nowrap; transition: background .15s;
}
.fshare_copy:hover, .fshare_copy:focus { background: #0074db !important; color: #fff !important; }
.fshare_copy.is_done, .fshare_copy.is_done:hover, .fshare_copy.is_done:focus { background: #16a34a !important; color: #fff !important; }

/* network grid */
.fshare_grid {
    list-style: none; margin: 0 !important; padding: 0 !important;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px;
}
.fshare_grid li { margin: 0; padding: 0; list-style: none; }
.fshare_net {
    display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%;
    border: 0; background: transparent; padding: 4px 0; cursor: pointer; color: var(--fshare-text);
    font: inherit; border-radius: 10px;
}
.fshare_net_icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; color: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}
.fshare_net_icon svg { width: 24px; height: 24px; display: block; }
.fshare_net:hover .fshare_net_icon, .fshare_net:focus-visible .fshare_net_icon { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.fshare_net:focus-visible { outline: 2px solid var(--fshare-accent); outline-offset: 2px; }
/* neutralise theme (Astra) button hover/focus/active styles */
.fshare_overlay .fshare_net,
.fshare_overlay .fshare_net:hover,
.fshare_overlay .fshare_net:focus,
.fshare_overlay .fshare_net:active { background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--fshare-text) !important; }
.fshare_net_label { font-size: 12.5px; line-height: 1.2; text-align: center; color: var(--fshare-text); }

.fshare_net_facebook .fshare_net_icon { background: #0866ff; }
.fshare_net_twitter .fshare_net_icon { background: #000; }
html.dark .fshare_net_twitter .fshare_net_icon { background: #fff; color: #000; }
.fshare_net_pinterest .fshare_net_icon { background: #e60023; }
.fshare_net_messenger .fshare_net_icon { background: linear-gradient(45deg, #0a7cff 0%, #a033ff 60%, #ff5c87 100%); }
.fshare_net_whatsapp .fshare_net_icon { background: #25d366; }
.fshare_net_whatsapp .fshare_net_icon svg { width: 26px; height: 26px; }
.fshare_net_sms .fshare_net_icon { background: #34c759; }
.fshare_net_email .fshare_net_icon { background: #6b7280; }
.fshare_net_native .fshare_net_icon { background: var(--fshare-bg-soft); color: var(--fshare-text); box-shadow: inset 0 0 0 1px var(--fshare-border); }

/* toast */
.fshare_toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 100001;
    transform: translate(-50%, 12px); opacity: 0;
    background: #19283a; color: #fff; padding: 11px 16px; border-radius: 10px;
    font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
html.dark .fshare_toast { background: #f0f2f5; color: #19283a; }
.fshare_toast.is_visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile: bottom sheet ---------- */
@media (max-width: 600px) {
    .fshare_overlay { align-items: flex-end; padding: 0; }
    .fshare_modal {
        max-width: none; border-radius: 18px 18px 0 0;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        max-height: 92dvh;
    }
    .fshare_modal::before {
        content: ""; display: block; width: 38px; height: 4px; border-radius: 2px;
        background: var(--fshare-border); margin: 0 auto 10px;
    }
    .fshare_net_icon { width: 50px; height: 50px; }
    .fshare_toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .fshare_overlay, .fshare_modal, .fshare_net_icon, .fshare_toast { transition: none !important; }
    .fshare_preview.is_loading .fshare_preview_body span { animation: none; }
}
