/* Share panel and buttons (share.js). Works on the chapter pages, the question library and in the app. */
.share-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid rgba(226,189,106,.5);background:rgba(226,189,106,.12);color:inherit;font:inherit;font-size:.85rem;cursor:pointer}
.share-btn:hover{background:rgba(226,189,106,.24)}
.share-btn:focus-visible{outline:2px solid #e2bd6a;outline-offset:2px}
.share-panel{position:fixed;inset:0;z-index:1000;display:grid;place-items:end center;padding:16px;background:rgba(4,20,14,.55)}
@media(min-width:600px){.share-panel{place-items:center}}
.share-card{width:min(420px,100%);background:#163329;color:#f3efe2;border:1px solid #6b8d79;border-radius:16px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.4);animation:share-in .2s ease}
.share-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.share-close{background:transparent;border:0;color:inherit;font-size:1.1rem;cursor:pointer;padding:6px 10px;border-radius:8px}
.share-preview{margin:0 0 12px;font-size:.85rem;line-height:1.5;opacity:.85;white-space:pre-line}
.share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.share-grid a,.share-grid button{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:inherit;text-decoration:none;font:inherit;font-size:.9rem;cursor:pointer}
.share-whatsapp{background:#1f8f4e!important;border-color:#1f8f4e!important;color:#fff!important}
.share-grid a:hover,.share-grid button:hover{filter:brightness(1.15)}
.share-copy-box{width:100%;margin-top:10px;border-radius:8px;padding:8px;font:inherit;font-size:.8rem}
.share-status{min-height:1.2em;margin:8px 0 0;font-size:.85rem;color:#9fe3bd}
.share-target{outline:2px solid #e2bd6a;outline-offset:4px;border-radius:10px;animation:share-pulse 1.6s ease 2}
@keyframes share-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes share-pulse{50%{outline-color:transparent}}
@media(prefers-reduced-motion:reduce){.share-card,.share-target{animation:none}}
[data-theme=light] .share-card{background:#fffef9;color:#1d2b24;border-color:#d8d2bd}
[data-theme=light] .share-grid a,[data-theme=light] .share-grid button{background:#f4f1e6;border-color:#e0dac6}
[data-theme=light] .share-status{color:#22693f}
