/* קהילה */
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.avatar--pink { background: radial-gradient(circle at 35% 30%, #F7A9C4, #B55472); }
.avatar--lilac { background: radial-gradient(circle at 35% 30%, #D6C1F2, #8E66C2); }
.avatar--blue { background: radial-gradient(circle at 35% 30%, #BFD8F5, #5B8FC9); }
.avatar--green { background: radial-gradient(circle at 35% 30%, #C6EBBB, #5FA552); }

/* כרטיסי קבוצה */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.group-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; }
.group-card b { font-size: var(--fs-body); line-height: 1.25; margin-top: 8px; }
.group-card small { font-size: var(--fs-tiny); color: var(--text-muted); }
.group-card__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.group-card--pink .group-card__icon { background: var(--baby-pink); color: var(--smoky-pink-dark); }
.group-card--lilac .group-card__icon { background: #EADCF7; color: #6B4596; }
.group-card--blue .group-card__icon { background: #DCE8F7; color: #3D5F8F; }
.group-card--green .group-card__icon { background: #DDF2D6; color: #3E7A35; }

/* סדנאות */
.events { display: grid; }
.event { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; padding-top: 0; }
.event:last-child { padding-bottom: 0; }
.event__date { flex: none; width: 54px; border-radius: 14px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.event__date b { font-size: 22px; font-weight: 800; }
.event__date small { font-size: 11px; font-weight: 600; }
.event__date--pink { background: var(--baby-pink); color: var(--smoky-pink-dark); }
.event__date--lilac { background: #EADCF7; color: #6B4596; }
.event__date--green { background: #DDF2D6; color: #3E7A35; }
.event__body { flex: 1; min-width: 0; }
.event__body b { display: block; font-size: var(--fs-body); line-height: 1.3; }
.event__body small { display: block; font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 3px; }
.event__btn { flex: none; font-size: var(--fs-small); font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--smoky-pink); color: #fff; }
.event__btn.is-on { background: var(--baby-pink); color: var(--smoky-pink-dark); }

/* פיד */
.section-head--pad { padding: 0 4px; }
.ask-bar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-card); color: var(--text-muted); text-align: start; margin-bottom: 14px; }
.ask-bar span:not(.avatar) { flex: 1; }
.ask-bar .icon { color: var(--smoky-pink); }
.feed { display: grid; gap: 14px; }
.post { background: var(--surface); border-radius: var(--radius-m); padding: 16px 18px; box-shadow: var(--shadow-card); }
.post__head { display: flex; align-items: center; gap: 10px; }
.post__head b { display: block; font-size: var(--fs-body); }
.post__head small { display: block; font-size: var(--fs-tiny); color: var(--text-muted); }
.post p { margin-top: 10px; font-size: var(--fs-body); line-height: 1.5; }
.post__expert { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: var(--fs-tiny); font-weight: 700; color: #3E7A35; background: #DDF2D6; padding: 3px 10px; border-radius: 99px; }
.post__foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.post__btn { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); padding: 6px 10px; border-radius: 99px; }
.post__btn:hover { background: var(--background); }
.post__btn.is-on { color: var(--smoky-pink-dark); background: var(--baby-pink); }
.post__btn.is-on .icon path { fill: currentColor; }

/* כתיבת שאלה */
.ask-form { display: grid; gap: 16px; max-height: 90vh; overflow: auto; }
.ask-form h2 { margin-bottom: -4px; }

/* מסך קבוצה */
.group-page { padding-top: 0; }
.group-hero { color: #fff; padding: calc(12px + env(safe-area-inset-top)) var(--margin) 22px; border-radius: 0 0 var(--radius-l) var(--radius-l); }
.group-hero--pink { background: var(--smoky-pink); }
.group-hero--lilac { background: #8E66C2; }
.group-hero--blue { background: #5B8FC9; }
.group-hero--green { background: #5FA552; }
.group-hero__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.2); margin-top: 6px; }
.group-hero h1 { font-size: 26px; font-weight: 800; margin-top: 12px; }
.group-hero p { opacity: .9; margin-top: 2px; }
.group-hero__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: var(--fs-small); font-weight: 600; }
.btn--join { width: auto; min-height: 42px; font-size: var(--fs-small); }
.group-hero .btn--primary { background: #fff; color: var(--smoky-pink-dark); }
@media (min-width: 700px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
  .group-page .sheet, .group-hero > * { max-width: 760px; margin-inline: auto; }
}
.group-hero .topbar__back { color: var(--text); }

/* ---------- תוספות: מי לחצה, תגובות, הפעילות שלי ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.avatar--xs { width: 22px; height: 22px; font-size: 11px; border: 2px solid #fff; margin-inline-start: -6px; }
.avatar--xs:first-child { margin-inline-start: 0; }
.post__link { display: block; color: inherit; text-decoration: none; }
.post__me { font-style: normal; font-size: 11px; background: var(--baby-pink); color: var(--smoky-pink-dark); padding: 1px 8px; border-radius: 99px; margin-inline-start: 4px; }
.post--mine { box-shadow: inset 0 0 0 2px var(--baby-pink), var(--shadow-card); }
.post__likers { display: flex; align-items: center; margin-top: 10px; font-size: var(--fs-tiny); color: var(--text-muted); }
.post__likers span:last-of-type { margin-inline-start: 8px; }
.post__likers--btn { width: 100%; padding: 8px 10px; border-radius: 12px; background: var(--background); text-align: start; }
.post__likers--btn span:not(.avatar) { flex: 1; }

/* לשוניות פיד / פעילות */
.segmented--tabs { margin-bottom: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.seg { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 99px; font-weight: 700; font-size: var(--fs-small); color: var(--text-muted); }
.seg.is-on { background: var(--smoky-pink); color: #fff; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #E0386B; color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.seg.is-on .badge { background: #fff; color: var(--smoky-pink-dark); }
.col .chips { margin: 0 0 12px; padding: 2px 0 4px; }

/* התראות */
.notifs { display: grid; }
.notif { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 14px; color: inherit; text-decoration: none; }
.notif.is-new { background: var(--background); }
.notif__av { position: relative; flex: none; }
.notif__type { position: absolute; bottom: -3px; left: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; color: #fff; }
.notif__type--reply { background: #5B8FC9; }
.notif__type--like { background: var(--smoky-pink); }
.notif__body { font-size: var(--fs-small); line-height: 1.4; }
.notif__body small { display: block; color: var(--text-muted); font-size: var(--fs-tiny); margin-top: 2px; }

/* רשימת מי לחצה */
.people { display: grid; gap: 4px; margin-top: 14px; max-height: 50vh; overflow: auto; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.people b { flex: 1; }
.people .icon { color: var(--smoky-pink); }

/* מסך פוסט */
.post-page { padding-bottom: 96px; }
.post-page .area__head { gap: 12px; }
.post-page .area__head h1 { font-size: var(--fs-h2); flex: 1; }
.post-page .sheet { max-width: 760px; margin: 0 auto; }
.post--open .post__text { font-size: 19px; }
.replies__title { font-size: var(--fs-h2); font-weight: 700; margin: 22px 4px 12px; }
.replies { display: grid; gap: 12px; }
.reply { display: flex; gap: 10px; align-items: flex-start; }
.reply__bubble { flex: 1; background: var(--surface); border-radius: 18px; border-start-start-radius: 4px; padding: 10px 14px; box-shadow: var(--shadow-card); }
.reply__bubble b { font-size: var(--fs-small); }
.reply__bubble em { font-style: normal; font-size: 11px; color: #3E7A35; background: #DDF2D6; padding: 1px 8px; border-radius: 99px; margin-inline-start: 4px; }
.reply__bubble p { margin-top: 2px; font-size: var(--fs-body); line-height: 1.45; }
.reply__bubble small { display: block; font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 4px; }
.reply--expert .reply__bubble { box-shadow: inset 0 0 0 2px #C6EBBB; }
.composer { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 20px rgba(58,29,44,.08); border-radius: 22px 22px 0 0; }
.composer__input { flex: 1; min-height: 44px; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 16px; font: inherit; background: var(--background); }
.composer__input:focus { outline: none; border-color: var(--smoky-pink); }
.composer__send { width: 44px; height: 44px; border-radius: 50%; background: var(--smoky-pink); color: #fff; display: grid; place-items: center; }
