.sg-post-card-scope .post {
    position: relative;
    padding: 10px 15px 15px;
    cursor: pointer;
}

.sg-post-card-scope .post:not(.post-last)::after {
    content: '';
    position: absolute;
    left: 63px;
    right: 15px;
    bottom: 0;
    height: 1px;
    background-color: #e1e4e8;
}

.sg-post-card-scope .post.is-hidden {
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.sg-post-card-scope .post-author-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.sg-post-card-scope .post-author-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #ddd;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sg-post-card-scope .author-info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.sg-post-card-scope .title-time-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-post-card-scope .post-author-name {
    color: #ff4500;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.sg-post-card-scope .post-title {
    margin: 0;
    overflow: hidden;
    color: #666;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-post-card-scope .post-actual-title {
    margin: 4px 0 0 48px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-post-card-scope .post-actual-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sg-post-card-scope .post-actual-title a:hover {
    color: #ff4500;
}

.sg-post-card-scope .post-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 4px 48px;
}

.sg-post-card-scope .post-tag-link {
    text-decoration: none;
}

.sg-post-card-scope .post-tag {
    color: #ff4500;
    font-size: 0.76rem;
}

.sg-post-card-scope .follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #ff4500;
    border-radius: 8px;
    background-color: #fff;
    color: #ff4500;
    cursor: pointer;
    font-size: 0.58rem;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sg-post-card-scope .follow-btn:hover {
    background-color: #ff4500;
    color: #fff;
}

.sg-post-card-scope .follow-btn.is-following,
.sg-post-card-scope .follow-btn.following {
    background-color: #f0f0f0;
    color: #999;
}

.sg-post-card-scope .post-content {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 6px 48px;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sg-post-card-scope .post-interactions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 48px;
}

.sg-post-card-scope .interaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.sg-post-card-scope .interaction-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.sg-post-card-scope .interaction-btn:hover {
    background-color: #fff3f0;
    color: #ff4500;
}

.sg-post-card-scope .interaction-btn.like:hover,
.sg-post-card-scope .interaction-btn.like.active {
    background-color: #edfdf3;
    color: #38a169;
}

.sg-post-card-scope .interaction-btn.dislike:hover,
.sg-post-card-scope .interaction-btn.dislike.active {
    background-color: #fff1f1;
    color: #e53e3e;
}

.sg-post-card-scope .interaction-btn.comment:hover {
    color: #3182ce;
}

.sg-post-card-scope .interaction-btn.share:hover {
    color: #d69e2e;
}

.sg-post-card-scope .interaction-btn.hide:hover {
    color: #4299e1;
}

.sg-post-card-scope .interaction-btn.report:hover {
    color: #ed8936;
}

.sg-community-card-scope .community-card {
    display: flex;
    flex-direction: column;
    min-height: 292px;
    padding: 18px 18px 20px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sg-community-card-scope .community-card:hover {
    border-color: #d5dbe3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.sg-community-card-scope .community-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.sg-community-card-scope .community-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #f0f2f5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sg-community-card-scope .community-image--cover {
    overflow: hidden;
}

.sg-community-card-scope .community-image--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-community-card-scope .community-image--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4500;
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sg-community-card-scope .community-info {
    flex: 1;
    min-width: 0;
}

.sg-community-card-scope .community-name {
    margin: 2px 0 8px;
    color: #222;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.sg-community-card-scope .community-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #56606f;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sg-community-card-scope .community-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    margin-bottom: 16px;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.4;
}

.sg-community-card-scope .stat-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.sg-community-card-scope .stat-value {
    color: #4b5563;
    font-weight: 500;
}

.sg-community-card-scope .stat-label {
    color: #667085;
}

.sg-community-card-scope .join-btn {
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    border: 1px solid #ff4500;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: #ff4500;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.sg-community-card-scope .join-btn:hover {
    background-color: #ff4500;
    box-shadow: 0 2px 6px rgba(255, 69, 0, 0.24);
    color: #fff;
    transform: translateY(-1px);
}

.sg-community-card-scope .join-btn.is-following {
    border-color: #ff4500 !important;
    background-color: #f5f5f5 !important;
    color: #8b8b8b !important;
}

.sg-community-card-scope .join-btn.is-following:hover {
    background-color: #ececec;
    color: #8b8b8b;
}

.sg-community-card-scope .join-btn:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.detail-notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    min-width: 220px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.detail-notification.show {
    opacity: 1;
    transform: translateY(0);
}
