/* Post Detail Page Styles */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header .back-btn { font-size: 18px; color: #333; }
.detail-header .header-title { font-size: 17px; font-weight: 600; }
.detail-header .header-actions { display: flex; gap: 15px; color: #666; font-size: 18px; }

.detail-content {
    background: #fff;
    padding-bottom: 60px;
}

/* Author Box */
.author-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.name-row .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
}

.badge-gold { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-gray { background: #f9fafb; color: #4b5563; border: 1px solid #e5e7eb; }
.badge-light-green { background: #f0fdf4; color: #27ae60; border: 1px solid #d1fae5; }

.meta-row {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 4px;
}

.follow-btn {
    background: #f0f9f4;
    color: #27ae60;
    border: 1px solid #e0f2e9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Article */
.post-article {
    padding: 0 16px 16px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-tags .tag {
    color: #2f80ed;
    font-size: 13px;
    margin-bottom: 12px;
    display: inline-block;
}

.post-body {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.post-images img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #bbb;
}

.loc-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f9f9f9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Interaction Bar */
.interaction-bar {
    display: flex;
    padding: 16px;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    gap: 30px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.action-item i { font-size: 18px; }
.action-item.reward { color: #f39c12; font-weight: 600; margin-left: auto; }

/* Comments */
.comments-section {
    padding: 20px 16px;
}

.comments-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-section .title { font-size: 16px; font-weight: 700; color: #333; }
.comments-section .count { color: #999; font-weight: normal; }
.comments-section .sort { font-size: 13px; color: #666; }

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.c-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.c-content {
    flex: 1;
}

.c-user-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.c-name { font-size: 14px; font-weight: 600; color: #333; }
.c-time { font-size: 11px; color: #bbb; margin-bottom: 8px; }
.c-text { font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 8px; }
.c-img { width: 100px; border-radius: 4px; margin-bottom: 10px; }

.c-footer, .r-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.c-reply-btn:hover, .r-reply-btn:hover { color: #27ae60; }

/* Nested Replies */
.nested-replies {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.reply-item {
    display: flex;
    gap: 10px;
}

.r-avatar { width: 28px; height: 28px; border-radius: 50%; }
.r-user-row { display: flex; align-items: center; gap: 4px; }
.r-name { font-size: 13px; font-weight: 600; color: #333; }
.r-name small { font-weight: normal; color: #999; }
.r-time { font-size: 10px; color: #bbb; margin-bottom: 4px; }
.r-text { font-size: 13px; color: #555; line-height: 1.4; margin-bottom: 6px; }

.expand-comments {
    width: 100%;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    color: #27ae60;
    font-size: 14px;
    margin-top: 24px;
}

/* Related Recommendations */
.related-section {
    padding: 20px 16px;
    border-top: 8px solid #f9f9f9;
}

.related-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-item .r-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.related-item .r-info { flex: 1; }
.related-item .r-title { font-size: 14px; color: #333; margin-bottom: 4px; line-height: 1.4; }
.related-item .r-meta { font-size: 11px; color: #bbb; }

/* Bottom Reply Bar */
.reply-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.reply-input-box {
    flex: 1;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
}

.reply-input-box input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.input-icons {
    display: flex;
    gap: 12px;
    color: #999;
    font-size: 18px;
}

.send-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
