/* Blog Post Detail Styles */
.blog-post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

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

.post-breadcrumb {
    margin-bottom: 1rem;
}

.post-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: #0056b3;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #333;
    margin: 1rem 0;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 600;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Featured Image */
.post-featured-image {
    margin: 2rem -2rem;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.post-content h1 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #222;
}

.post-content h2 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
    color: #222;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: #222;
}

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

.post-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.post-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
}

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

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

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

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

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

.post-content a {
    color: #007bff;
    text-decoration: underline;
}

.post-content a:hover {
    color: #0056b3;
}

/* Footer */
.post-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 3rem;
}

.post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.share-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-email:hover {
    background: #333;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.related-post-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.related-post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-post-image.default-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.related-post-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.related-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    width: 0;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-post-detail {
        padding: 1.5rem;
    }
    
    .post-featured-image {
        margin: 2rem -1.5rem;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .post-breadcrumb,
    .post-share,
    .related-posts,
    .reading-progress {
        display: none;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .post-featured-image {
        margin: 1rem 0;
    }
}