/* Blog Detail Page Styles */

.blog-post-detail {
    max-width: 100%;
    margin: 0 auto;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.publish-date,
.read-time {
    font-size: 0.9rem;
    color: #6c757d;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-author-info {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.author-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
}

.post-stats {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-stats i {
    margin-right: 0.25rem;
}

/* Featured Image */
.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

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

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e83e8c;
}

.post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-content th,
.post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Post Tags */
.post-tags {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.post-tags h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-tags .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .badge:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea;
}

/* Social Share */
.social-share {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.social-share h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-buttons .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Author Bio */
.author-bio {
    margin-top: 2rem;
    border: 2px solid #e9ecef;
}

.author-avatar {
    text-align: center;
}

/* Post Navigation */
.post-navigation {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.post-nav-link {
    display: block;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Sidebar */
.related-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

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

.related-post h6 a {
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.4;
}

.related-post h6 a:hover {
    color: #667eea;
}

.related-post img {
    border-radius: 8px;
    object-fit: cover;
    height: 60px;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #6c757d;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.toc-h2 {
    font-weight: 600;
}

.toc-h3 {
    padding-left: 1rem;
    font-size: 0.9rem;
}

.toc-h4 {
    padding-left: 2rem;
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.75rem;
    }
    
    .share-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .social-share,
    .post-navigation,
    .sidebar,
    .breadcrumb {
        display: none;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .post-title {
        font-size: 18pt;
    }
}