/* Tâm sự dev chi tiết styles */
.post-detail {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.post-detail-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    padding: 20px 20px 10px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-detail-info {
    padding: 20px;
}

/* Author Info */
.author-info {
    text-align: center;
    padding: 15px;
    border: 1px solid #c8d5e3;
    border-radius: 8px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 10px auto;
}

.author-name {
    font-weight: bold;
    font-size: 16px;
    color: #495057;
    margin-bottom: 5px;
}

.author-type {
    margin-bottom: 10px;
}

/* Post Content */
.post-content-header {
    margin-bottom: 20px;
}

.post-date {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.post-content-body {
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-content-body p {
    margin-bottom: 15px;
}

/* Action Buttons */
.post-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.action-btn.like-btn.liked {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.action-btn.like-btn.liked i {
    color: white;
}

/* Author Signature */
.author-signature {
    margin-top: 10px;
}

.signature-content {
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Post Sidebar */
.post-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.post-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.stat-item i {
    width: 16px;
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.comments-header {
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.comments-header h3 {
    margin: 0;
    font-size: 18px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Comment Author */
.comment-author {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1565c0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 10px auto;
}

.comment-author-name {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.comment-author-type {
    margin-bottom: 5px;
}

/* Comment Content */
.comment-line { 
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #c8d5e3;
}
.comment-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #c8d5e3;
}

.comment-date {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.comment-body {
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-body p {
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.comment-actions .action-btn {
    font-size: 12px;
    padding: 5px 12px;
}

/* Comments Pagination */
.comments-pagination {
    padding: 20px;
    background: #f8f9fa;
}

/* Reply Form */
.reply-form {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.reply-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
}

.reply-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.reply-form .row {
    padding: 20px;
}

.reply-author {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.reply-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 10px auto;
}

.reply-author-name {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
}

.reply-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

/* CKEditor container */
#replyEditor {
    min-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.reply-actions {
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-info .row {
        flex-direction: column;
    }
    
    .author-info {
        order: 1;
        margin-bottom: 20px;
    }
    
    .post-sidebar {
        order: 3;
        margin-top: 20px;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .comment-item .row,
    .reply-form .row {
        flex-direction: column;
    }
    
    .comment-author,
    .reply-author {
        order: 1;
        margin-bottom: 15px;
    }
    
    .post-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Animation */
.comment-item {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
