/* Post Detail Page Styles */
.post-detail-wrapper {
    margin-bottom: 3rem;
}

.post-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.post-detail-header {
    padding: 2rem 2rem 1rem;
}

.post-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-detail-meta i {
    color: #FF6B35;
}

.post-detail-meta a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

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

.post-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 1.5rem 0;
}

.post-detail-content {
    padding: 0 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-detail-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.post-detail-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}

.post-detail-content p {
    margin-bottom: 1.2rem;
}

.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-tags-section {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 2px solid #f0f0f0;
}

.post-tag-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.post-tag-badge:hover {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* Related Posts Section */
.related-posts-section {
    margin-bottom: 3rem;
}

.section-title-detail {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #FF6B35;
    display: inline-block;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.related-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-body {
    padding: 1.2rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #FF6B35;
}

.related-post-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #FF6B35;
}

.comment-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.comment-rating {
    display: flex;
    gap: 0.2rem;
}

.comment-rating .star {
    font-size: 1.1rem;
}

.comment-rating .star.filled {
    color: #ffc107;
}

.comment-rating .star.empty {
    color: #ddd;
}

.comment-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Comment Form */
.comment-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.comment-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.comment-form-section .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.comment-form-section .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem;
    transition: border-color 0.3s;
}

.comment-form-section .form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.3rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

/* Sidebar Widgets - Match homepage style */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #FF6B35;
}

.trending-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.trending-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.trending-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.trending-post-content h4 a:hover {
    color: #FF6B35;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: #FF6B35;
}

.category-count {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .post-detail-title {
        font-size: 1.6rem;
    }

    .post-detail-content {
        font-size: 1rem;
    }

    .post-detail-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }
}
