/* ─────────────────────────────────────────────────────────────
   SeedTree — SeedTree Feed
   Renders the records you've sunlit (followed). Bookmark-style
   list for now; once Events/Milestones lands it becomes a real
   activity stream.
   ───────────────────────────────────────────────────────────── */

.page-inner--feed { --panel-width: 720px; }

.feed-status {
  font: italic 0.85rem var(--font-display);
  color: rgba(236, 231, 216, 0.6);
  text-align: center;
  margin: 6px 0 18px;
}

.feed-empty {
  text-align: center;
  margin: 28px auto 8px;
  padding: 32px 22px;
  background: rgba(7, 20, 14, 0.45);
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 14px;
}
.feed-empty p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(236, 231, 216, 0.78);
  margin: 0 0 18px;
}
.feed-empty-cta {
  display: inline-block;
  font: italic 0.95rem var(--font-display);
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(201, 169, 97, 0.55);
}
.feed-empty-cta:hover { color: var(--cream); }

.feed-list {
  display: flex; flex-direction: column;
  gap: 14px;
  margin: 22px 0 32px;
}

.feed-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "logo head  acts"
    "logo desc  desc"
    ".    foot  foot";
  gap: 10px 16px;
  padding: 18px 20px;
  background: rgba(13, 31, 23, 0.7);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.22);
  border-radius: 14px;
  transition: border-color .25s var(--ease-organic), background .25s var(--ease-organic);
}
.feed-card:hover { border-color: rgba(201, 169, 97, 0.4); background: rgba(25, 54, 42, 0.74); }

.feed-card-logo {
  grid-area: logo;
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(236, 231, 216, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.2);
}
.feed-card-logo--missing {
  display: flex; align-items: center; justify-content: center;
  color: rgba(236, 231, 216, 0.45);
  font: italic 0.85rem var(--font-display);
}

.feed-card-head {
  grid-area: head;
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.feed-card-type {
  font: 0.62rem var(--font-body);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(236, 231, 216, 0.55);
  display: inline-flex; align-items: center;
}
.feed-card-type .map-card-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.feed-card-type .map-card-dot.seed  { background: #f0c040; }
.feed-card-type .map-card-dot.tree  { background: #4ade80; }
.feed-card-type .map-card-dot.bloom { background: #e8729c; }
.feed-card-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.1rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}
.feed-card-loc {
  font: 0.78rem var(--font-body);
  color: rgba(236, 231, 216, 0.55);
}

.feed-card-desc {
  grid-area: desc;
  font: 0.88rem var(--font-body);
  line-height: 1.55;
  color: rgba(236, 231, 216, 0.78);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-acts {
  grid-area: acts;
  display: flex; align-items: flex-start; gap: 6px;
}

.feed-card-foot {
  grid-area: foot;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 169, 97, 0.14);
  flex-wrap: wrap;
}
.feed-card-foot .map-card-link svg { width: 13px; height: 13px; }
.feed-card-land {
  display: inline-flex; align-items: center; gap: 6px;
  font: italic 0.85rem var(--font-display);
  color: var(--gold-light);
  text-decoration: none;
  transition: color .2s var(--ease-organic);
}
.feed-card-land:hover { color: var(--cream); }

/* Stub state (worker unreachable, no record metadata) */
.feed-card--stub {
  grid-template-columns: 1fr;
  grid-template-areas: "head" "foot";
  background: rgba(13, 31, 23, 0.5);
}
.feed-card--stub .feed-card-name {
  font-style: italic;
  color: rgba(236, 231, 216, 0.75);
  font-size: 0.95rem;
}
.feed-card--stub .feed-card-id {
  font: 0.72rem var(--font-body);
  color: rgba(236, 231, 216, 0.5);
}

@media (max-width: 540px) {
  .feed-card {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "logo head"
      "desc desc"
      "acts acts"
      "foot foot";
  }
  .feed-card-logo { width: 44px; height: 44px; }
  .feed-card-acts { justify-content: flex-end; }
}
