/* Just Say Farrakhan: share sheet, badges, celebration. Loaded only with the share feature. */
.top-actions { display: flex; align-items: center; gap: .85rem; }
.share-top { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; background: transparent; border: 1px solid var(--gold); color: var(--text); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.share-top svg { width: 1rem; height: 1rem; }
.share-top:hover { background: var(--gold); color: #000; }
body.share-open { overflow: hidden; }

/* About / share panel */
.share-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; list-style: none; margin: .9rem 0 1rem; padding: 0; }
.share-counts li { display: flex; flex-direction: column; padding: .7rem .5rem; background: var(--bg-2); border: 1px solid var(--line-weak); text-align: center; }
.share-counts b { font: 400 1.5rem/1 var(--display); color: var(--gold); }
.share-counts span { margin-top: .25rem; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.share-link-row { display: flex; gap: .5rem; align-items: stretch; margin: .6rem 0; }
.share-link-row input { flex: 1; min-width: 0; height: 2.8rem; font: inherit; font-size: .85rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); padding: 0 .8rem; }
.share-link-row .btn { flex: 0 0 auto; }
.share-code-label { margin: 0; font-size: .8rem; color: var(--muted); }
.share-code-label b { color: var(--gold); letter-spacing: .14em; }
.share-badges { list-style: none; margin: 1rem 0 .4rem; padding: 0; display: grid; gap: .55rem; }
.share-badge { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .75rem; border: 1px solid var(--line-weak); background: var(--bg-2); color: var(--muted); }
.share-badge b { display: block; color: var(--text); font-size: .95rem; }
.share-badge small { display: block; color: var(--soft); font-size: .78rem; line-height: 1.4; }
.share-badge.on { border-color: var(--gold); background: linear-gradient(90deg, rgba(201,164,92,.16), transparent); color: var(--text); }
.share-badge.on b { color: var(--gold); }
.share-badge-mark { flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; margin-top: .1rem; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.share-badge.on .share-badge-mark { border-color: var(--gold); background: var(--gold); }
.share-badge.on .share-badge-mark::after { content: ""; position: absolute; inset: .35rem .4rem .45rem; border: solid #000; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.share-next { margin: .4rem 0 1rem; font-size: .88rem; color: var(--muted); }
#share-panel .btn { margin-top: .2rem; }
.lb .nm em.founding { display: inline-block; margin-left: .35rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Share sheet */
.share-sheet { position: fixed; inset: 0; z-index: 450; display: grid; place-items: end center; }
.share-sheet[hidden] { display: none !important; }
.share-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.share-sheet-panel { position: relative; width: min(32rem, calc(100% - 1.2rem)); max-height: calc(100vh - 1.2rem - env(safe-area-inset-bottom)); overflow-y: auto; margin-bottom: calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg-1); border: 1px solid var(--line); padding: 1.15rem 1.1rem 1.2rem; box-shadow: 0 -18px 60px rgba(0,0,0,.5); }
.share-sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.share-sheet-kicker { margin: 0; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.share-sheet-x { width: 2.2rem; height: 2.2rem; border: 0; background: none; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.share-sheet-lead { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.share-nets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 0 0 1rem; }
.share-net { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 3.8rem; padding: .45rem .3rem; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.share-net svg { width: 1.25rem; height: 1.25rem; }
.share-net:hover, .share-net:focus-visible { border-color: var(--gold); color: var(--gold); }
.share-net.primary { background: var(--gold); color: #000; border-color: var(--gold); }
.share-net.primary:hover { background: var(--gold-hi); color: #000; }
@media (min-width: 700px) {
  .share-sheet { place-items: center; }
  .share-sheet-panel { margin-bottom: 0; }
}

/* Celebration */
.share-cele { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; padding: 1.2rem; background: rgba(0,0,0,.82); }
.share-cele[hidden] { display: none !important; }
.share-cele-burst { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; }
.share-cele-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; background: var(--gold); border-radius: 1px; animation: share-burst .9s ease-out both; animation-delay: var(--d, 0ms); }
.share-cele-burst i.g { width: 5px; height: 14px; background: #f5f5f5; }
@keyframes share-burst {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); }
}
.share-cele-card { position: relative; width: min(28rem, 100%); padding: 2rem 1.4rem 1.5rem; background: #000; border: 1px solid var(--gold); text-align: center; box-shadow: 0 0 0 1px rgba(201,164,92,.25), 0 30px 80px rgba(0,0,0,.6); }
.share-cele-card .eyebrow { justify-content: center; }
.share-cele-card h2 { margin: 0 0 .7rem; font: 400 clamp(2rem, 7vw, 3rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--gold); }
.share-cele-card p { margin: 0 0 1rem; color: #e2e2e2; }
.share-cele-card .share-badges { text-align: left; margin-bottom: 1.2rem; }
.share-cele-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* Bonus quiz card (styled when quiz.js renders the hook classes) */
.qz-cat-bonus { border-color: var(--gold) !important; background: linear-gradient(90deg, rgba(201,164,92,.16), transparent); }
.qz-cat-locked { opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  .share-cele-burst i { animation: none; opacity: 0; }
}
