/* home + friends + search module styles (shared styles live in ../style.css) */

/* welcome + status */
/* the welcome box is the page's focal point: primary container, large type */
.home-welcome { background: var(--pc); color: var(--on-pc); }
.home-welcome .box-body { padding: 20px; }
.home-welcome .muted { color: color-mix(in srgb, var(--on-pc) 78%, transparent); }
.home-welcome a { color: inherit; text-decoration: underline; }
.home-welcome input[type=text] { border-radius: 999px; border-color: transparent; padding: 11px 18px; }
.home-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.home-hello h1 { margin: 0 0 2px; overflow-wrap: anywhere; font-size: 1.7rem; letter-spacing: -.01em; }
.home-hello p { margin: 0; }
.home-sprout { flex: none; }
.home-status, .friends-filter { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.home-status input, .home-status textarea, .friends-filter input[type=search] { flex: 1 1 180px; min-width: 0; width: auto; }

.home-stage-prompt { margin: 10px 0 0; }
.home-quick, .friends-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.home-quick { margin-top: 10px; }
.home-quick a.chip, .friends-stages a.chip { padding: 5px 12px; color: var(--text); }
.home-quick a.chip:hover, .friends-stages a.chip:hover { text-decoration: none; background: var(--title-bg); }
.friends-stages a.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* notifications: coral chips */
.home-notes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.home-notes::-webkit-scrollbar { display: none; }
.home-note { flex: none; white-space: nowrap; }
/* the coral chip already says "new" */
.home-note .badge { display: none; }
.home-note {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; color: var(--on-tc);
  background: var(--tc); border-radius: 12px; font-size: .9rem; font-weight: 600;
}
.home-note:hover { text-decoration: none; filter: brightness(.97); }
.home-note-icon { font-size: 20px; }
.home-note-text { min-width: 0; }

/* compact rows: visitors, veganniversaries */
.home-mini { display: grid; gap: 8px; }
.home-mini-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-mini-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-mini-row .item-time { flex: none; }
.home-veg-years { overflow: hidden; text-overflow: ellipsis; }
.home-veg-today { flex: none; color: var(--pink); font-weight: 800; font-size: .85rem; }

/* friend feed: icon of the kind of update */
.home-act-icon { font-size: .95rem; }

/* people you may know */
.home-suggest { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.home-suggest-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0;
  padding: 12px 8px; background: var(--card-alt); border-radius: 20px;
}
.home-suggest-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-suggest-card p { margin: 0 0 4px; }
.home-suggest-card .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-suggest-card form { margin: auto 0 0; width: 100%; }
.home-suggest-card .btn { min-height: 32px; padding: 4px 8px; font-size: .8rem; }

/* friends lists + search */
.friends-actions form { margin: 0; }
.friends-actions .btn { min-height: 30px; padding: 3px 11px; font-size: .8rem; width: auto; }
.friends-search { max-width: 720px; margin: 0 auto; }

/* profile visitors: "new" marker and the tracking-off note */
.home-new { flex: none; }
.home-visitors-off { margin: 0; }

/* shortcuts under the welcome box: a row of chips (sideways scroll on phones) */
.home-shortcuts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.home-shortcuts::-webkit-scrollbar { display: none; }
.shortcut {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; white-space: nowrap;
}
.shortcut:hover { text-decoration: none; background: var(--card); }
.shortcut-icon { font-size: 20px; color: var(--primary); }
.shortcut b { font-weight: 600; }
/* the one-line description is for screen readers and the tooltip-free small print: hidden in the chip */
.shortcut > span:last-child { display: none; }
.shortcut-new { background: var(--sc); border-color: transparent; color: var(--on-sc); }

/* "people you may know" in the narrow right column: compact rows */
.col-right .home-suggest { grid-template-columns: 1fr; gap: 8px; }
.col-right .home-suggest-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px;
  align-items: center; text-align: left; padding: 8px;
}
.col-right .home-suggest-card > .avatar, .col-right .home-suggest-card > a:first-child { grid-row: span 3; }
.col-right .home-suggest-card form { grid-column: 1 / -1; margin-top: 4px; }

/* chip rows: wrap on wide screens so nothing is cut off; on phones they scroll sideways and fade at the edge */
@media (min-width: 900px) {
  .home-shortcuts, .home-notes { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 899px) {
  .home-shortcuts, .home-notes {
    margin-right: -12px; padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
}

/* ---------- friends feed: a line per update, with a card under it when there is something to show ---------- */
.feed { display: grid; gap: 4px; padding: 4px 8px 10px; }
.feed-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; }
.feed-item:hover { background: var(--card-alt); }
.feed-main { min-width: 0; }
.feed-head { overflow: hidden; }
.feed-head .user-link { margin-right: 5px; }
.feed-what { color: var(--muted); overflow-wrap: anywhere; }
.feed-time { float: right; color: var(--muted); font-size: .78rem; margin-left: 10px; white-space: nowrap; line-height: 1.9; }
a.feed-time:hover { color: var(--link); text-decoration: none; }
.feed-text { margin: 4px 0 0; overflow-wrap: anywhere; }
.feed-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; margin-top: 8px; }
.feed-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 8px;
  padding: 8px; border-radius: 18px; background: var(--bg); color: var(--text);
}
.feed-card:hover, .feed-quote:hover { text-decoration: none; filter: brightness(.98); }
.feed-card > img { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; display: block; background: var(--card-alt); }
.feed-card b, .feed-card .small { display: block; }
.feed-card .small { color: var(--muted); }
.feed-card .small .ms { font-size: 1.2em; vertical-align: -.22em; }
.feed-card-event { grid-template-columns: 50px minmax(0, 1fr); }
.feed-quote { display: block; margin-top: 8px; padding: 10px 14px; border-radius: 18px; background: var(--bg); color: var(--text); }
.feed-quote b { display: block; margin-bottom: 2px; }
.feed-quote p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.feed-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; align-items: center; }
.feed-card .feed-foot { margin-top: 4px; }
.feed-foot .ms { font-size: 17px; vertical-align: -3px; margin-right: 3px; }
/* small things stay one line */
.feed-mini { padding-top: 8px; padding-bottom: 8px; align-items: center; }
.feed-mini .avatar { width: 30px; height: 30px; justify-self: center; }

/* the post box in the welcome card */
.home-status { flex-wrap: nowrap; align-items: flex-end; }
.home-status textarea { resize: none; overflow-y: auto; min-height: 0; line-height: 1.4; }
.home-status-hint { display: none; margin: 8px 4px 0; opacity: .85; }
.home-status:focus-within + .home-status-hint, .home-status:has(textarea:not(:placeholder-shown)) + .home-status-hint { display: block; }
.home-welcome .photo-pick { background: color-mix(in srgb, var(--on-pc) 10%, transparent); color: var(--on-pc); }

/* narrow phones: the post field takes the whole row so its hint is readable; camera and Post sit under it */
@media (max-width: 520px) {
  .home-status { flex-wrap: wrap; justify-content: flex-end; }
  .home-status input[type=text], .home-status textarea { flex: 1 0 100%; }
  .home-status .photo-name { flex: 1; min-width: 0; order: -1; }
}
.home-veg-what { margin: 0 0 8px; }

/* search: sections of the "All" view */
.search-section { margin: 14px 20px 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.search-more { margin: 2px 20px 10px; font-size: .85rem; font-weight: 700; }

/* videos in the feed: smaller until played, so one post does not take over the page */
.feed-item .yt-card { max-width: 300px; }
.feed-item .yt-card.embed-tall { max-width: 190px; }
