/* Post Item Component Styles */
/* 帖子项目组件的独立样式文件，可被其他页面复用 */

.posts-list {
    padding: 0;
    background: white;
}

/* 帖子样式 */
.post-item {
    padding: 15px 20px;
    border-bottom: 3px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.post-item:last-child {
    border-bottom: none;
}

/* 投票区域 */
.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #878a8c;
    font-size: 16px;
}

.vote-btn:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.vote-score {
    font-size: 12px;
    font-weight: 600;
    color: #1c1c1c;
}

/* 帖子内容 */
.post-content {
    flex: 1;
}

.post-meta {
    font-size: 12px;
    color: #878a8c;
    margin-bottom: 8px;
}

.post-meta a {
    color: #0079d3;
    text-decoration: none;
}

.post-meta a:hover {
    color: #ff4500;
}

.post-title {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    margin-bottom: 8px;
    text-decoration: none;
}

.post-title:hover {
    color: #ff4500;
}

.post-text {
    font-size: 14px;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.post-actions {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #878a8c;
    align-items: center;
}

/* Flair和标签样式 */
.post-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.post-flair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,0,0,0.1);
}

.flair-icon {
    font-size: 12px;
}

.post-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #1c1c1c;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.post-tag:hover {
    background-color: #0079d3 !important;
    color: white;
    transform: translateY(-1px);
}

.post-actions a,
.post-actions span {
    color: #878a8c;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.post-actions a:hover {
    background: #f0f0f0;
}

/* 媒体预览样式 */
.post-media {
    margin: 8px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.video-embed {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 6px;
}

.video-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
}

.video-preview,
.image-preview,
.link-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.post-media a {
    color: #0079d3;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.post-media a:hover {
    text-decoration: underline;
}

.video-preview {
    border-left: 3px solid #ff4500;
    padding-left: 8px;
}

.image-preview {
    border-left: 3px solid #46d160;
    padding-left: 8px;
}

.link-preview {
    border-left: 3px solid #0079d3;
    padding-left: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-embed iframe,
    .video-embed video {
        height: 280px;
    }
}