/*
 * Activity feed — shared styles for the social timeline that appears on
 * the home page (and could be reused in /u/follows).
 *
 * Layout: avatar with a small type-icon badge in the corner, then a
 * two-line body (headline + detail), then a right-aligned timestamp.
 * The whole row is a single anchor so the click target spans full width.
 */

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}
.feed-list::-webkit-scrollbar { width: 6px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
.feed-list::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease, border-color .15s ease;
}
.feed-item:hover {
    background: rgba(255, 255, 255, .035);
    border-color: #1f1f1f;
}

.feed-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
.feed-avatar,
.feed-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
    border: 1px solid #232323;
    display: block;
}
.feed-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}
.feed-icon-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8c8c8;
}
.feed-icon-badge svg {
    width: 10px;
    height: 10px;
}
/* Per-type tint on the badge — subtle, not loud. */
.feed-icon-badge.type-journal_published { background: #1c2a3a; color: #8ab4f8; }
.feed-icon-badge.type-gallery_uploaded  { background: #2a2230; color: #c697eb; }
.feed-icon-badge.type-avatar_changed    { background: #1f2c25; color: #8fd9a8; }
.feed-icon-badge.type-cover_changed     { background: #2a2820; color: #d9c789; }
.feed-icon-badge.type-anthem_changed    { background: #2a1f2a; color: #e08fcc; }
.feed-icon-badge.type-user_followed     { background: #1f2730; color: #8ab8d9; }
.feed-icon-badge.type-comment_created   { background: #2a2a1f; color: #d8d090; }

.feed-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.feed-headline {
    font-size: .85rem;
    color: #aaa;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-headline strong {
    color: #ececec;
    font-weight: 600;
}
.feed-detail {
    font-size: .76rem;
    color: #6e6e6e;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-time {
    font-size: .7rem;
    color: #444;
    flex-shrink: 0;
    white-space: nowrap;
    align-self: center;
}

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    color: #555;
    text-align: center;
    font-size: .82rem;
}
.feed-empty svg {
    width: 28px;
    height: 28px;
    color: #2e2e2e;
}

@media (max-width: 560px) {
    .feed-list { max-height: 360px; }
    .feed-avatar-wrap,
    .feed-avatar,
    .feed-avatar-placeholder { width: 36px; height: 36px; }
    .feed-headline { font-size: .82rem; }
    .feed-detail { font-size: .72rem; }
}
