/* NWS Share Bar — v20261021e */

.nws-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 0 6px;
}

.nws-share-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.nws-share-label span { font-weight: 400; }

.nws-share-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.nws-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    padding: 0;
}

.nws-share-btn svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: fill .18s ease;
}

.nws-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.nws-share-btn.whatsapp:hover { background: #25D366; }
.nws-share-btn.wechat:hover   { background: #07C160; }
.nws-share-btn.telegram:hover { background: #229ED9; }
.nws-share-btn.facebook:hover { background: #1877F2; }
.nws-share-btn.linkedin:hover { background: #0A66C2; }
.nws-share-btn.email:hover    { background: #6b7280; }
.nws-share-btn.copy:hover     { background: #374151; }

.nws-share-btn:hover svg { fill: #fff; }

/* footer compact variant */
.nws-share.compact { padding: 18px 0 4px; }
.nws-share.compact .nws-share-btn { width: 36px; height: 36px; }
.nws-share.compact .nws-share-btn svg { width: 17px; height: 17px; }
.nws-share.compact .nws-share-btns { gap: 10px; }

footer .nws-share-label { color: #bbb; }
footer .nws-share-btn { background: rgba(255, 255, 255, .12); }
footer .nws-share-btn svg { fill: #ddd; }

/* ---------- WeChat QR popup ---------- */
.nws-qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 13000; /* above story lightbox (12000) */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nws-qr-overlay.open { display: flex; }

.nws-qr-box {
    background: #fff;
    border-radius: 16px;
    padding: 34px 30px 26px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    animation: nwsQrIn .25s ease;
}

@keyframes nwsQrIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.nws-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.nws-qr-close:hover { color: #333; }

.nws-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
}

.nws-qr-title span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
}

.nws-qr-code {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 8px;
}

.nws-qr-code svg,
.nws-qr-code img {
    width: 220px !important;
    height: 220px !important;
}

.nws-qr-url {
    margin-top: 14px;
    font-size: 11px;
    color: #aaa;
    word-break: break-all;
    line-height: 1.5;
}

.nws-qr-fallback { font-size: 13px; color: #c0392b; }

/* ---------- toast ---------- */
.nws-share-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 20px);
    background: rgba(30, 30, 30, .92);
    color: #fff;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 30px;
    z-index: 13500;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.nws-share-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
    .nws-share { gap: 8px; padding: 18px 0 4px; }
    .nws-share-btn { width: 38px; height: 38px; }
    .nws-share-btn svg { width: 18px; height: 18px; }
    .nws-share-btns { gap: 9px; }
    .nws-qr-box { padding: 28px 20px 20px; }
    .nws-qr-code svg, .nws-qr-code img { width: 190px !important; height: 190px !important; }
}
