/* Externe Posts Activity Stream Styles */

.externe-posts-stream-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.stream-header {
    margin-bottom: 30px;
}

.stream-header h2 {
    color: #e9edef;
    margin: 0;
}

/* Feed Post Card */
.externe-post-card {
    background: var(--community-container, #202c33);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--community-border, #2a3942);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #e9edef;
    font-size: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8696a0;
}

.btn-external-link {
    padding: 8px;
    background: transparent;
    border: none;
    color: #8696a0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-external-link:hover {
    background: #2a3942;
    color: #00a884;
}

/* Post Content */
.post-content {
    margin-bottom: 15px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.post-title a {
    color: #e9edef;
    text-decoration: none;
}

.post-title a:hover {
    color: #00a884;
}

.post-excerpt {
    color: #8696a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-image {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #2a3942;
}

.btn-like,
.btn-comment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #8696a0;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-like:hover,
.btn-comment:hover {
    background: #2a3942;
    color: #e9edef;
}

.btn-like.liked {
    color: #ff6b6b;
}

.btn-like svg,
.btn-comment svg {
    flex-shrink: 0;
}

/* Comments Section */
.post-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a3942;
}

.comments-list {
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.no-comments {
    text-align: center;
    color: #8696a0;
    font-size: 14px;
    padding: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: #111b21;
    border-radius: 12px;
    padding: 10px 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    color: #e9edef;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #8696a0;
}

.comment-text {
    color: #e9edef;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #111b21;
    border-radius: 24px;
    padding: 8px 15px;
}

.comment-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e9edef;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
}

.comment-input::placeholder {
    color: #8696a0;
}

.btn-send-comment {
    padding: 8px;
    background: transparent;
    border: none;
    color: #00a884;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-send-comment:hover {
    background: rgba(0, 168, 132, 0.1);
}

.btn-send-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.btn-load-more {
    padding: 12px 30px;
    background: #00a884;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: #06cf9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a3942;
    border-top-color: #00a884;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 15px;
    color: #8696a0;
    font-size: 14px;
}

/* Login Required */
.externe-posts-login-required {
    text-align: center;
    padding: 60px 20px;
    background: var(--community-container, #202c33);
    border-radius: 12px;
}

.externe-posts-login-required p {
    color: #8696a0;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #00a884;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #06cf9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.3);
}

/* Scrollbar für Comments List */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #111b21;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #2a3942;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #3a4952;
}

/* Responsive */
@media (max-width: 768px) {
    .externe-posts-stream-container {
        padding: 10px;
    }
    
    .externe-post-card {
        padding: 15px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .post-title {
        font-size: 16px;
    }
}
