/* Post Container Styles */
.posts-container {
    position: relative;
    min-height: 100px;
}

/* Post Card Styles */
.post-card {
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.post-author {
    margin: 0;
}

.post-author a {
    color: #fff;
    text-decoration: none;
}

.post-author a:hover {
    color: #0d6efd;
}

.post-content {
    color: #fff;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-image {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

.post-actions-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-actions-buttons .btn i {
    font-size: 0.875rem;
}

.post-actions-buttons .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.post-actions-buttons .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.post-actions-buttons .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.post-actions-buttons .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Form Styles */
.post-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.post-form textarea {
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    resize: none;
    margin-bottom: 1rem;
}

.post-form textarea:focus {
    background: rgba(33, 37, 41, 0.95);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.post-image-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-top: 1rem;
    border-radius: 0.5rem;
    display: none;
}

/* Loading States */
#posts-loading {
    text-align: center;
    padding: 2rem;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feed-tab {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.feed-tab.active {
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Load More Button */
#load-more-posts {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: rgba(33, 37, 41, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    border-radius: 0.25rem;
}

#load-more-posts:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* New Post Animation */
@keyframes highlightPost {
    0% { transform: translateY(-5px); background: rgba(13, 110, 253, 0.2); }
    100% { transform: translateY(0); background: rgba(33, 37, 41, 0.95); }
}

.post-card.new-post {
    animation: highlightPost 1s ease-out;
}