.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    transition: border-color 0.3s;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.post:hover {
    border-color: #555;
}

.post.pinned {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.post.promoted {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.post-badge {
    position: absolute;
    top: 20px;
    right: 53px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    display: flex;
    gap: 5px;
    align-items: center;
}

.badge-pinned {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}

.badge-trending {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: #fff;
}

.badge-promoted {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.badge-pending {
    background: linear-gradient(45deg, #f0ad4e, #f7c46c);
    color: #000;
}

.badge-rejected {
    background: linear-gradient(45deg, #b83229, #ff7373);
    color: #fff;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.post-username {
    font-weight: bold;
    font-size: 0.95em;
}

.post-time {
    font-size: 0.8em;
    color: #666;
    margin-left: 8px;
}

.post-text {
    padding: 0 18px 16px;
    line-height: 1.8;
    color: #fff;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-status {
    padding: 0 18px 12px;
    font-size: 0.85em;
    color: #f0ad4e;
    font-weight: 500;
}

.post-status.rejected {
    color: #ff7b7b;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding: 12px 18px;
    border-top: 1px solid #222;
}

.action-btn {
    background: none;
    border: none;
    color: #8e8e8e;
    cursor: pointer;
    font-size: 1.1em;
    padding: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.action-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn.is-disabled:hover {
    transform: none;
    color: #8e8e8e;
}

.action-btn.liked {
    color: #ed4956;
}

.comments-section {
    padding: 18px;
    background: #0a0a0a;
    border-top: 1px solid #222;
    display: none;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8em;
}
.comment-content {
    width: 100%;
}
.label_time {
    font-size: 0.8rem;
    color: #666;
}
.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #1a1a1a;
}

.comment-disabled {
    margin-top: 12px;
    font-size: 0.85em;
    color: #888;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.comment-menu {
    position: relative;
}

.comment-menu-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.9em;
}

.comment-menu-btn:hover {
    color: #fff;
}

.comment-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 150px;
    display: none;
    z-index: 10;
}

.comment-dropdown.active {
    display: block;
}

.comment-dropdown button {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 0.85em;
}

.comment-dropdown button:hover {
    background: #222;
}

.comment-dropdown button.danger {
    color: #ed4956;
}

.comment-dropdown button.danger:hover {
    background: #2a1a1a;
}

.comment-input input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
    font-size: 0.85em;
}

.comment-input button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 1.1em;
    padding: 8px;
}

.feed-status {
    text-align: center;
    padding: 20px 0 40px;
}

.feed-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    font-size: 0.9rem;
}

.feed-loader.active {
    display: flex;
}

.load-more-btn {
    display: none;
    margin: 12px auto 0;
    align-items: center;
    gap: 8px;
}

.load-more-btn.visible {
    display: inline-flex;
}

.feed-end {
    display: none;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #666;
}

.feed-end.active {
    display: block;
}
