/* =====================================================
   ליכודלינק — SOCIAL (emotion reactions + polls)
   Uses the existing blue palette (style.css tokens).
   ===================================================== */

/* ── emotion reactions ── */
.post-reacts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.reactx { display: inline-flex; align-items: center; gap: 6px; background: var(--fill); border: 1px solid var(--line-2); border-radius: 30px; padding: 6px 12px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--white); transition: transform .1s ease, background .12s ease; }
.reactx:hover { transform: translateY(-1px); background: var(--fill-2); }
.reactx.on { background: var(--fill-2); border-color: var(--navy-600); box-shadow: 0 0 0 1px var(--navy-600) inset; }
.rx-emo { font-size: 16px; line-height: 1; }
.rx-n { color: var(--faint); font-weight: 700; font-size: 13px; }

/* ── polls ── */
.poll-card .poll-q { font-weight: 800; color: var(--white); font-size: 17px; margin: 6px 0 14px; line-height: 1.4; }
.poll-opts { display: flex; flex-direction: column; gap: 9px; }
.poll-opt { position: relative; display: block; width: 100%; text-align: start; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-weight: 700; color: var(--navy-600); background: var(--bg-elev); cursor: pointer; overflow: hidden; font-size: 15px; }
button.poll-opt:hover { background: var(--fill); }
.poll-opt.done { cursor: default; color: var(--white); }
.poll-opt.done.mine { border-color: var(--navy-600); }
.poll-opt > i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--fill-2); border-radius: 12px; z-index: 0; transition: width .5s cubic-bezier(.2,.7,.3,1); }
.poll-opt.mine > i { background: rgba(11, 71, 196, .2); }
.poll-opt .po-t, .poll-opt .po-p { position: relative; z-index: 1; }
.poll-opt .po-p { float: left; color: var(--muted); font-weight: 800; }
.poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--faint); font-size: 13px; font-weight: 600; }
.poll-del { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; font-size: 13px; }

/* poll composer */
.pollc-add { background: var(--fill); border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px; width: 100%; color: var(--navy-600); font-weight: 700; cursor: pointer; }

/* ── UGC report (store-policy) ── */
.report-btn { opacity: .55; }
.report-btn:hover { opacity: 1; color: var(--red); }
.report-modal .rp-sub { color: var(--faint); font-size: .88rem; text-align: center; margin-bottom: 14px; }
.rp-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.rp-reason { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; cursor: pointer; font-weight: 600; color: var(--mist); font-size: .92rem; }
.rp-reason:has(input:checked) { border-color: var(--navy-600); background: var(--fill); }
.rp-reason input { accent-color: var(--navy-600); }
.chat-head-rp { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 5px; }
.chat-head-rp svg { width: 18px; height: 18px; }
.chat-head-rp:hover { color: var(--red); }

/* admin reports queue */
.rp-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rp-row:last-child { border-bottom: 0; }
.rp-row.done { opacity: .55; }
.rp-top { font-size: .93rem; color: var(--white); }
.rp-time { color: var(--faint); font-size: .78rem; margin-inline-start: 6px; }
.rp-reason { color: var(--mist); font-size: .87rem; margin-top: 2px; }
.rp-excerpt { color: var(--faint); font-size: .84rem; margin-top: 4px; background: var(--soft, var(--fill)); border-radius: 8px; padding: 6px 10px; }
.rp-acts { display: flex; gap: 8px; flex: none; }
.rp-resolve, .rp-delpost { border: 1px solid var(--line-2); background: var(--bg-elev); border-radius: 9px; padding: 7px 12px; font-weight: 700; cursor: pointer; font-size: .84rem; color: var(--mist); }
.rp-resolve:hover { border-color: #2FA96B; color: #1a8a4e; }
.rp-delpost:hover { border-color: var(--red); color: var(--red); }
.rp-donetag { color: #1a8a4e; font-weight: 800; font-size: .84rem; }

/* ── social-first home polish ── */
/* header login = the blue member button (was a padlock icon button) */
.login-btn { background: var(--grad-brand) !important; color: #fff !important; border: 0 !important; border-radius: 30px !important; padding: 9px 18px !important; font-weight: 800; box-shadow: var(--glow-blue); display: inline-flex; align-items: center; gap: 7px; }
.login-btn .login-ic { color: #fff; display: inline-flex; }
.login-btn .login-ic svg { width: 17px; height: 17px; }
.login-btn:hover { filter: brightness(1.06); }

/* post action bar — fewer, calmer, breathing */
.post-actions { display: flex; align-items: center; gap: 26px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-actions .act-btn { background: none; border: 0; box-shadow: none; padding: 6px 2px; }
.post-actions .act-btn .aico svg { width: 21px; height: 21px; }
.post-actions .act-btn .acnt { font-size: .9rem; }
.post-actions .share-btn { margin-inline-start: auto; background: var(--grad-brand); color: #fff; border-radius: 30px; padding: 8px 18px; box-shadow: var(--glow-blue); }
.post-actions .share-btn .acnt { color: #fff; }
.post-actions .share-btn .aico svg { width: 18px; height: 18px; }
.post-actions .share-btn:hover { filter: brightness(1.06); }

/* reaction chips — lighter, quieter */
.post-reacts { gap: 6px; margin-top: 10px; }
.reactx { padding: 4px 10px; font-size: 12.5px; border-color: var(--line); background: transparent; }
.reactx .rx-emo { font-size: 14px; }
.reactx .rx-n { font-size: 12px; }

/* spread meter as a feed item — match card rhythm */
.timeline .spread-meter { margin: 0 0 18px; }

/* mission guest pill — blue member chip instead of a lock */
.sm-m-lock { background: var(--grad-brand) !important; color: #fff !important; border: 0 !important; }

/* ── legal consent + footer links ── */
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 4px; font-size: .85rem; color: var(--mist); line-height: 1.5; cursor: pointer; }
.consent-row input { margin-top: 3px; accent-color: var(--navy-600); }
.consent-row a { color: var(--navy-600); font-weight: 700; }
.nav-legal { margin-top: 10px; font-size: .8rem; color: var(--faint); }
.nav-legal a { color: var(--faint); text-decoration: none; }
.nav-legal a:hover { color: var(--navy-600); }
.legal-link { color: inherit; }

/* ══════════════════════════════════════════════════════════════
   SHARE PANEL — platform-routed groups (content vs link)
   Instagram/TikTok/Facebook get the real media; WhatsApp/Telegram/X/SMS get a link.
   ══════════════════════════════════════════════════════════════ */
.share-grid.grouped { display: block; }
.sh-group + .sh-group { margin-top: 16px; }
.sh-group-t {
  display: flex; align-items: center; gap: 10px; margin: 0 2px 9px;
  color: var(--faint); font-size: 0.74rem; font-weight: 800;
}
.sh-group-t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sh-group-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sh-group-n {
  margin: 9px 2px 0; color: var(--faint);
  font-size: 0.7rem; font-weight: 600; line-height: 1.45;
}
@media (max-width: 400px) { .sh-group-g { grid-template-columns: repeat(3, 1fr); } }

/* platform logos ON the content button — they say where the OS sheet leads
   (Instagram/TikTok/Facebook), without pretending we can target one of them. */
.sh-primary-btn .spb-nets { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.sh-primary-btn .spb-net { display: inline-flex; opacity: 0.92; }
.sh-primary-btn .spb-net svg { width: 17px; height: 17px; }
@media (max-width: 360px) { .sh-primary-btn .spb-nets { display: none; } }

/* A post opened from a shared /p/<id> link — brief highlight so the visitor sees
   exactly which post they were sent to. */
.post-card.post-focus {
  animation: postFocus 2.6s var(--ease);
}
@keyframes postFocus {
  0%, 70% { box-shadow: 0 0 0 3px var(--blue, #2E74F0), 0 10px 34px rgba(11,71,196,0.22); }
  100%    { box-shadow: 0 0 0 0 rgba(46,116,240,0); }
}
@media (prefers-reduced-motion: reduce) { .post-card.post-focus { animation: none; box-shadow: 0 0 0 3px var(--blue, #2E74F0); } }

/* ══════════════════════════════════════════════════════════════
   ADMIN COMPOSER — video poster picker
   Admin chooses the still shown in the feed + WhatsApp/Telegram preview.
   ══════════════════════════════════════════════════════════════ */
.composer-poster { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md, 14px); background: var(--fill, #f4f6fb); }
.composer-poster[hidden] { display: none; }
.cp-head { font-weight: 800; font-size: 0.9rem; margin-bottom: 10px; }
.cp-head .cp-sub { font-weight: 600; font-size: 0.74rem; color: var(--faint); margin-inline-start: 6px; }
.cp-row { display: flex; gap: 12px; align-items: stretch; }
.cp-thumb { flex-shrink: 0; width: 84px; height: 112px; border-radius: 10px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2, #dfe4f0); }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-thumb-load { color: #9aa4bd; font-size: 0.72rem; }
.cp-actions { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.cp-scrub-lbl { font-size: 0.78rem; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 7px; }
.cp-scrub { width: 100%; accent-color: var(--blue, #2E74F0); cursor: pointer; }
.cp-scrub:disabled { opacity: 0.5; cursor: default; }
.cp-upload-btn { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 0.82rem; background: #fff; border: 1.5px solid var(--line-2, #dfe4f0); color: var(--navy-600, #0B47C4); transition: all 0.15s; }
.cp-upload-btn:hover { border-color: var(--blue, #2E74F0); }
.cp-upload-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════
   PERSONAL SHARE CARD — profile hero button + preview modal
   ══════════════════════════════════════════════════════════════ */
.pf-sharecard {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: start;
  margin: 14px 0 4px; padding: 16px 18px; border-radius: var(--r-md, 16px);
  background: linear-gradient(120deg, #0B47C4, #2E74F0); color: #fff; border: none;
  box-shadow: 0 10px 30px rgba(11,71,196,0.28); cursor: pointer; transition: transform 0.15s, box-shadow 0.18s;
}
.pf-sharecard:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(11,71,196,0.36); }
.pf-sc-ic { flex-shrink: 0; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); border-radius: 12px; }
.pf-sc-ic svg { width: 24px; height: 24px; }
.pf-sc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-sc-t { font-weight: 800; font-size: 1.02rem; }
.pf-sc-s { font-weight: 600; font-size: 0.78rem; opacity: 0.92; }

.sc-backdrop {
  position: fixed; inset: 0; z-index: 3000; background: rgba(8,17,32,0.72);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: scFade 0.2s var(--ease, ease);
}
@keyframes scFade { from { opacity: 0; } to { opacity: 1; } }
.sc-modal {
  position: relative; width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto;
  background: var(--white, #fff); border-radius: 22px; padding: 22px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.sc-x { position: absolute; top: 14px; inset-inline-start: 14px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--fill, #f0f3fa); border: none; color: var(--muted, #5b6479); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sc-x svg { width: 18px; height: 18px; }
.sc-title { font-weight: 800; font-size: 1.24rem; margin-top: 6px; color: var(--ink, #0c1220); }
.sc-sub { font-size: 0.85rem; color: var(--muted, #5b6479); margin: 6px 0 16px; }
.sc-preview { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px rgba(11,71,196,0.22); }
.sc-preview img { width: 100%; display: block; }
.sc-actions { display: flex; gap: 10px; margin-top: 16px; }
.sc-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 13px;
  font-weight: 800; font-size: 0.96rem; background: var(--fill, #f0f3fa); color: var(--navy-600, #0B47C4); border: 1.5px solid var(--line-2, #dfe4f0); cursor: pointer; transition: all 0.15s; }
.sc-btn svg { width: 20px; height: 20px; }
.sc-btn.primary { background: linear-gradient(120deg, #0B47C4, #2E74F0); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(11,71,196,0.3); }
.sc-btn:hover { transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE (Hebrew ⇄ English)
   ══════════════════════════════════════════════════════════════ */
.lang-btn {
  flex-shrink: 0; min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1.5px solid var(--line-2, #dfe4f0);
  background: var(--fill, #f0f3fa); color: var(--navy-600, #0B47C4);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.lang-btn:hover { border-color: var(--blue, #2E74F0); transform: translateY(-1px); }
/* keep the language toggle available on mobile (it is NOT collapsed into the hamburger) */
@media (max-width: 880px) { .lang-btn { min-width: 38px; height: 38px; padding: 0 9px; } }

/* English mode: numbers/points read LTR inside otherwise-flipped chrome where needed */
html.lang-en { direction: ltr; }
html.lang-en .header-logo-img { /* wordmark stays as-is (it's an image) */ }

/* profile: directory opt-in toggle */
.pf-toggle { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 12px 14px;
  background: var(--fill, #f0f3fa); border: 1px solid var(--line-2, #dfe4f0); border-radius: 12px;
  font-size: 0.86rem; color: var(--muted, #5b6479); cursor: pointer; }
.pf-toggle input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--blue, #2E74F0); cursor: pointer; }
.pf-toggle b { color: var(--navy-600, #0B47C4); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   נוער הליכוד — intro block + centered roster (small group)
   ══════════════════════════════════════════════════════════════ */
.youth-intro { background: var(--fill, #f0f3fa); border: 1px solid var(--line, #e6ebf5); border-radius: 16px; padding: 18px 20px; margin: 4px 0 20px; }
.youth-intro p { font-size: 0.96rem; line-height: 1.7; color: var(--ink, #0c1220); margin: 0 0 14px; }
.youth-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.youth-pillars .yp { background: #fff; border: 1px solid var(--line-2, #dfe4f0); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.youth-pillars .yp b { color: var(--navy-600, #0B47C4); font-size: 0.92rem; font-weight: 800; }
.youth-pillars .yp span { color: var(--muted, #5b6479); font-size: 0.8rem; line-height: 1.5; }
@media (max-width: 620px) { .youth-pillars { grid-template-columns: 1fr; } }

/* small roster (5 people): one balanced row on desktop, 3 then 2 on smaller screens */
.youth-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: center; max-width: 960px; margin: 0 auto; }
@media (max-width: 900px) { .youth-grid { grid-template-columns: repeat(3, 1fr); max-width: 620px; } }
@media (max-width: 560px) { .youth-grid { grid-template-columns: repeat(2, 1fr); max-width: 420px; } }

/* profile: delete-account (DSAR) — subtle, clearly destructive */
.pf-delete { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; background: none; border: none;
  color: #b42318; font-size: 0.82rem; font-weight: 700; cursor: pointer; opacity: 0.85; text-decoration: underline; }
.pf-delete:hover { opacity: 1; }
.pf-delete svg { width: 15px; height: 15px; }

/* form hint (e.g. password policy) */
.form-hint { font-size: 0.74rem; color: var(--faint, #9aa4bd); margin-top: 5px; }
