/* The logged-in web Feed tab. Reuses app-shell.css's top bar/tab bar and
   styles.css's tokens; adds the feed-specific empty state and a
   lightweight per-post summary card. Deliberately NOT post.css's full
   post-card markup — that's the /posts/:id detail page's own, much
   heavier rendering (full comment thread, compose box, like/follow
   wiring). This card is a preview only: first photo (no swipe carousel —
   same simplification the detail page itself already makes for multi-
   photo posts), a caption preview, and read-only counts. Tapping
   anywhere on the card goes to the real detail page for comments/
   replies/interaction, rather than duplicating that UI here. */

.feed-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 24px;
}

.feed-refresh-row {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 4px;
}

.feed-refresh-link {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.feed-refresh-link:hover {
  text-decoration: underline;
}

.feed-empty {
  text-align: center;
  padding: 70px 24px;
}

.feed-empty-heading {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}

.feed-empty-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sub);
  margin: 0 0 18px;
}

.feed-empty-link {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.feed-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding: 0 16px 6px;
  margin-bottom: 4px;
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 8px;
}

.feed-card-avatar-img,
.feed-card-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.feed-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.feed-card-username {
  flex: 1;
  min-width: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card-time {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sub);
  flex-shrink: 0;
}

.feed-card-media {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  background: #000;
  border-radius: 6px;
}

.feed-card-footer {
  padding-top: 8px;
}

.feed-card-counts {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
}

.feed-card-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin: 5px 0 0;
}

.feed-card-caption strong {
  font-weight: 700;
}

.feed-card-comments-link {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 6px;
}

/* The ad slot injected every 15 items sits in the same flow as the
   cards, same left/right inset. */
.feed-main .ad-slot {
  margin: 0 16px 16px;
}
