/* ============================================================
   Chia sẻ bài luận thành ảnh — style BỔ SUNG cho share-reading.js.
   Chỉ thêm selector có tiền tố hn-share; không ghi đè giao diện có sẵn.
   Nút và hộp thoại dùng lại class gốc: .btn, .btn-primary, .glass-btn,
   .modal-backdrop, .modal, .modal-top, .close.
   ============================================================ */
.read-foot.hn-share-has { gap: 12px; flex-wrap: wrap; }
.hn-share-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.hn-share-btn:disabled { opacity: .5; cursor: not-allowed; }

.modal-backdrop .modal.hn-share-modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.hn-share-modal .hn-share-info,
.hn-share-modal .hn-share-fine { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.hn-share-seg { display: inline-flex; gap: 4px; margin: 12px 0 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.hn-share-seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 999px; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.hn-share-seg button[aria-pressed="true"] { background: var(--gold); color: #1d1508; }
.hn-share-seg button:disabled { cursor: progress; }
.hn-share-preview { max-height: 52vh; overflow: auto; display: grid; gap: 12px; justify-items: center; margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .19); }
.hn-share-preview img { width: min(100%, 420px); height: auto; border-radius: 8px; }
.hn-share-cap { font-size: 12px; color: var(--muted); }
.hn-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hn-share-actions .btn:not(.btn-primary) { color: var(--text); background: transparent; border: 1px solid var(--line); }
.modal-backdrop .modal.hn-share-modal .hn-share-actions .btn,
.modal-backdrop .modal.hn-share-modal .hn-share-actions .btn-primary { width: auto; margin-top: 0; }
.hn-share-help { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); font-size: 13px; line-height: 1.55; color: var(--text); }
.hn-share-help ol { margin: 6px 0 0; padding-left: 20px; }
.hn-share-busy { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 46px 10px; color: var(--muted); font-size: 14px; }
.hn-share-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hn-share-spin .8s linear infinite; }
@keyframes hn-share-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hn-share-spin { animation-duration: 2.4s; } }
html[data-theme="light"] .hn-share-preview { background: rgba(90, 60, 140, .06); }
