/* Homepage unified feed — compact mobile-first */

.hf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hf-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hf-card:hover {
    transform: translateY(-1px);
}

.hf-card__link {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 0 10px;
    padding: 12px 12px 12px 10px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 34%),
        linear-gradient(145deg, rgba(24, 12, 38, 0.94), rgba(10, 4, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hf-card:hover .hf-card__link {
    border-color: rgba(188, 19, 254, 0.28);
}

.hf-card__rail {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.hf-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hf-accent, #bc13fe);
    box-shadow: 0 0 0 3px rgba(188, 19, 254, 0.12);
}

.hf-card--post { --hf-accent: #f43f5e; }
.hf-card--photo { --hf-accent: #0ea5e9; }
.hf-card--video { --hf-accent: #6366f1; }
.hf-card--story { --hf-accent: #ec4899; }
.hf-card--forum { --hf-accent: #f59e0b; }

.hf-card__panel {
    min-width: 0;
}

.hf-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.hf-card__ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(145deg, var(--hf-accent, #bc13fe), #7c4dff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.hf-card__who {
    min-width: 0;
}

.hf-card__name {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-card__verb {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(200, 184, 220, 0.86);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-card__time {
    font-size: 10px;
    font-weight: 700;
    color: rgba(140, 124, 158, 0.9);
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hf-card__body {
    display: grid;
    gap: 8px;
}

.hf-card__body--media {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.hf-card__media {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    line-height: 0;
}

.hf-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hf-card__media--lock {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
}

.hf-card__copy {
    min-width: 0;
}

.hf-card__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hf-card__text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(245, 241, 248, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hf-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hf-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(200, 184, 220, 0.92);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #e9d5ff;
    opacity: 0.88;
}

.hf-card:hover .hf-card__cta {
    opacity: 1;
}

.hf-card__cta i {
    font-size: 10px;
}

/* site-pages.css sets height:auto on all imgs — keep feed thumbs square */
.site-content .hf-card__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hf-list {
        gap: 8px;
    }

    .hf-card__link {
        grid-template-columns: 1fr;
        padding: 10px 11px;
    }

    .hf-card__rail {
        display: none;
    }

    .hf-card__head {
        margin-bottom: 7px;
        gap: 7px;
    }

    .hf-card__ava {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .hf-card__name {
        font-size: 12px;
    }

    .hf-card__verb {
        font-size: 10px;
    }

    .hf-card__time {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* Keep thumbnail beside text — never full-width stack */
    .hf-card__body--media {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 8px;
    }

    .hf-card__media {
        width: 60px;
        height: 60px;
        border-radius: 9px;
    }

    .hf-card__title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .hf-card__text {
        font-size: 12px;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }

    .hf-card__chip {
        font-size: 9px;
        padding: 2px 6px;
    }

    .hf-card__cta {
        margin-top: 5px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-card,
    .hf-card__media img,
    .hf-card__cta {
        transition: none;
    }

    .hf-card:hover {
        transform: none;
    }
}
