/* ui.css: שיתוף, סינון בעמוד הראשי ותגיות נושא. נטען בכל דפי השח. */

/* ---------- תגית נושא ליד תגית הרמה ---------- */
.chip.alt{background:#fff;color:#241f6b;margin-inline-start:6px;box-shadow:0 4px 12px -6px rgba(255,255,255,.5)}

/* ---------- שיתוף ---------- */
.sh-lock{overflow:hidden}
.sh-back{position:fixed;inset:0;background:rgba(10,8,40,.55);opacity:0;transition:opacity .2s;z-index:1000}
.sh-back.on{opacity:1}
.sh-back[hidden],.sh[hidden]{display:none}
.sh{position:fixed;z-index:1001;inset-inline:0;bottom:0;background:#faf9ff;color:#231f5a;border-radius:26px 26px 0 0;
  padding:16px 18px calc(18px + env(safe-area-inset-bottom,0px));max-height:90vh;overflow:auto;direction:rtl;
  transform:translateY(100%);transition:transform .22s ease-out;box-shadow:0 -20px 50px -20px rgba(8,6,45,.7);
  font-family:Rubik,system-ui,sans-serif;font-size:16px;line-height:1.5}
.sh.on{transform:none}
.sh::before{content:"";display:block;width:44px;height:5px;border-radius:3px;background:#d8d3ff;margin:0 auto 10px}
.sh-hd{display:flex;align-items:center;justify-content:space-between}
.sh-hd h2{margin:0;font-size:22px;font-weight:800;color:#231f5a}
.sh-x{width:40px;height:40px;border-radius:50%;border:0;background:#ece8ff;color:#241f6b;font-size:18px;cursor:pointer}
.sh-pv{margin:6px 0 4px;color:#55528a;font-size:15px}
.sh-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 6px;margin:12px 0}
.sh-i{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:4px 0;cursor:pointer;
  text-decoration:none;color:inherit;font:inherit;-webkit-tap-highlight-color:transparent}
.sh-ic{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;color:#fff;font:800 17px/1 Rubik,system-ui,sans-serif;
  box-shadow:0 8px 16px -8px rgba(18,14,61,.6);transition:transform .12s}
.sh-i:hover .sh-ic,.sh-i:focus-visible .sh-ic{transform:scale(1.08)}
.sh-l{font-size:13px;text-align:center;line-height:1.25;color:#231f5a}
.sh-url{display:flex;gap:8px;align-items:center;margin-top:6px}
.sh-url input{flex:1;min-width:0;font:14px/1.4 ui-monospace,Menlo,monospace;color:#33306b;background:#f1eeff;border:2px solid #ddd8ff;border-radius:14px;padding:9px 12px}
.sh-more{display:block;width:100%;margin-top:12px}
.sh-toast{min-height:1.5em;margin:10px 0 0;text-align:center;font-weight:700;color:#0b7d51;opacity:0;transition:opacity .2s}
.sh-toast.on{opacity:1}
@media (min-width:700px){
  .sh{inset:auto;top:50%;left:50%;bottom:auto;width:min(480px,92vw);border-radius:26px;transform:translate(-50%,-46%);opacity:0;
    transition:transform .2s ease-out,opacity .2s}
  .sh.on{transform:translate(-50%,-50%);opacity:1}
  .sh::before{display:none}
}

/* כפתור צף קטן, רק בסלולר */
.sh-fab{display:none}
@media (max-width:699px){
  .sh-fab:not([hidden]){display:grid;position:fixed;inset-inline-end:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:20;
    width:48px;height:48px;place-items:center;border:0;border-radius:50%;cursor:pointer;color:#fff;font-size:21px;
    background:linear-gradient(180deg,#8a6cff,#6c4bff);box-shadow:0 12px 24px -8px rgba(18,14,61,.7)}
}
@media (prefers-reduced-motion:reduce){.sh,.sh-back,.sh-ic,.sh-toast{transition:none}}
@media print{.sh,.sh-back,.sh-fab{display:none!important}}

/* ---------- עמוד ראשי: סינון וחלוקה לרמות ---------- */
.filters{display:grid;gap:10px;margin:18px 0 4px;padding:14px 16px;border-radius:22px;background:rgba(255,255,255,.12)}
:root[data-th="2"] .filters,:root[data-th="3"] .filters{background:rgba(18,14,61,.07)}
.fgrp{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fgrp>span{font-weight:800;color:var(--pt);min-width:3.2em}
.flt{font:700 15px Rubik,system-ui,sans-serif;color:var(--ink);background:#fff;border:2px solid transparent;border-radius:999px;padding:5px 15px;cursor:pointer}
.flt[aria-pressed="true"]{background:var(--y);border-color:var(--ink)}
.flt:hover{filter:brightness(.97)}
.lvl{margin-top:30px}
.lvl>h2{color:var(--pt);margin:0 0 2px;font-size:28px}
.lvl-d{color:var(--pt2);margin:0 0 4px}
.lvl[hidden],.mc[hidden]{display:none}
.tp{display:inline-block;margin:0 0 6px;padding:0 10px;border-radius:99px;background:#ece8ff;color:#33306b;font-size:13px;font-weight:700}
.mc.soon .tp{background:#ffffff26;color:var(--pt)}
.empty{color:var(--pt2);text-align:center;margin:26px 0}
.about h3 a{color:inherit}
