/* ==========================================================================
   Comments Styles
   ========================================================================== */

.comment-container {
    border: 1px solid #383838;
    border-radius: 8px;
    background-color: #2a2a2a;
}

.comment-container.bg-op {
    background-color: #313028;
    border-color: #555243;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Recent Comments Feed */
.activity-feed .comment-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.activity-feed .comment-item:last-child {
    margin-bottom: 0;
}

.activity-feed .comment-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.comment-item .comment-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #ffc107;
    flex-shrink: 0;
}

.activity-feed .comment-item .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.comment-item .comment-content {
    flex-grow: 1;
}

.comment-item .comment-meta {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.comment-item .comment-meta a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.comment-item .comment-meta a:hover {
    text-decoration: underline;
}

.comment-item .comment-post-title {
    font-size: 0.95rem;
    color: #ced4da;
    display: block;
}

.comment-item .comment-timestamp {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 0.25rem;
    display: block;
}

/* ==========================================================================
   Community Activity — Full-Width Comment Feed
   ========================================================================== */

.community-activity {
    overflow-x: hidden;
}

.community-activity__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .community-activity__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .community-activity__grid {
        grid-template-columns: 1fr;
    }
}

.community-activity__card {
    background-color: #2a2731;
    transition: box-shadow .2s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 3px 3px -2px #00000026, 0 3px 4px #0000001a, 0 1px 8px #00000017;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-activity__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.community-activity__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.community-activity__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.community-activity__username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-activity__username:hover {
    color: var(--bs-yellow);
}

.community-activity__timestamp {
    font-size: 0.75rem;
    color: #6c757d;
}

.community-activity__body {
    flex-grow: 1;
}

.community-activity__comment-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-activity__comment-text:hover {
    color: #fff;
}

.community-activity__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    overflow: hidden;
}

.community-activity__article-link {
    font-size: 0.8rem;
    color: var(--bs-yellow);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

.community-activity__article-link:hover {
    text-decoration: underline;
}

.community-activity__upvotes {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    flex-shrink: 0;
}

.community-activity__upvotes i {
    color: var(--bs-yellow);
    margin-right: 0.2rem;
}
