/* Scoped styles for `SellerProfile.razor` (Forum posts tab)
   Mirrors `Profile.razor.css` so the forum-posts list looks identical on seller profiles. */

.profile-forum-posts .post-card {
    padding: 1.25rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-forum-posts .post-card:hover {
    transform: translateY(-1px);
}

.profile-forum-posts .post-card:active {
    transform: scale(0.995);
}

.profile-forum-posts .post-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.profile-forum-posts .post-content {
    margin-bottom: 0.75rem;
}

.profile-forum-posts .post-content .preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-forum-posts .topic-link {
    color: inherit;
    text-decoration: none;
}

.profile-forum-posts .topic-link:hover {
    text-decoration: underline;
}

.profile-forum-posts .liked-by {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #eef1f4;
}

.profile-forum-posts .liked-by .liked-by-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.profile-forum-posts .liked-by .liked-by-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    background: white;
    border-radius: 999px;
    border: 1px solid #eef1f4;
    max-height: 32px;
    overflow: hidden;
    flex: 0 0 auto;
}

/* Ensure avatar images inside "Zahvalili" never blow up due to global img rules */
.profile-forum-posts .liked-by .liked-by-user img {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: cover;
    border-radius: 999px;
    flex: 0 0 26px;
    display: inline-block;
}

.profile-forum-posts .liked-by .liked-by-user-name {
    font-size: 0.85rem;
    color: #495057;
    max-width: 140px;
}

@media (max-width: 576px) {
    .profile-forum-posts .post-card {
        padding: 1rem;
    }

    .profile-forum-posts .liked-by .liked-by-user {
        max-height: 28px;
    }

    .profile-forum-posts .liked-by .liked-by-user img {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        min-height: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }

    .profile-forum-posts .liked-by .liked-by-user-name {
        max-width: 110px;
    }
}
