/* Seite: Feed (friends_feed_page.dart) – Beiträge randlos, 26 px Abstand, keine Trennlinien. */

@media (min-width: 768px) {
  .page--feed { padding-top: 24px; }
}

/* ---------- Story-Leiste: Kachel 102, Ring 90, Foto 78 ---------- */
.stories {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 10px;
  scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 102px;
  width: 102px;
  scroll-snap-align: start;
}
.story__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.story__ring--none { border-color: transparent; }
.story__sk { width: 78px; height: 78px; }
.story__name {
  margin-top: 8px;
  max-width: 94px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Platzhalter-Beiträge (Beiträge gibt es nur mit Anmeldung) ---------- */
.feed__list { padding-top: 4px; }
.post { margin-bottom: 26px; cursor: default; }
.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px 14px;
}
.post__who { flex: 1 1 auto; min-width: 0; display: grid; gap: 7px; }
.post__sk-media { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 0; }
@media (min-width: 768px) {
  .post__sk-media { border-radius: 4px; }
}
.post__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px 14px 4px;
  color: var(--text-3);
}
.post__actions .icon { opacity: .5; }
.post__spacer { flex: 1 1 auto; }
.post__sk-caption { display: grid; gap: 8px; padding: 6px 14px 0; }

/* Hinweis unter der Story-Leiste */
.feed-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 24px;
  text-align: center;
}
.feed-teaser__title { font-size: 17px; font-weight: 800; }
.feed-teaser__text { max-width: 320px; font-size: 14px; color: var(--text-2); }
.feed-teaser .btn { margin-top: 6px; }

/* =====================================================================
   Angemeldet: echter Freunde-Feed (Karten in page-post.css)
   ===================================================================== */
.page--feed-live .feed-stories { min-height: 128px; }
.stories--loading .story { cursor: default; }
.feed-list { padding-top: 10px; }
.feed-list:empty { padding-top: 0; }
.feed-status { padding-top: 4px; }
.feed-list:not(:empty) + .feed-status > .pc--skeleton:first-child { margin-top: 26px; }
.feed-sentinel { height: 1px; }

/* „Vorschläge konnten nicht geladen werden.“ + Erneut versuchen */
.feed-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 16px 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.feed-retry {
  flex: none;
  min-height: 40px;
  padding: 8px 4px;
  font-size: 13.5px;
  font-weight: 800;
}
.feed-error {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}
.feed-error p { font-size: 15px; font-weight: 700; }
.feed-more { display: grid; place-items: center; min-height: 64px; padding: 12px 0 8px; }

/* Herz der Benachrichtigungen schlägt doppelt, wenn etwas Neues kommt */
.feed-heart.is-beat .icon { animation: feed-heart-beat .7s ease-in-out; }
@keyframes feed-heart-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.22); }
  40% { transform: scale(1); }
  60% { transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-heart.is-beat .icon { animation: none; }
}
