/* Blog Post Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Post Header */
.post-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.post-category {
    background: #045744;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    font-weight: 500;
}

.post-read-time {
    color: #999;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #045744;
    color: white;
    border-color: #045744;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #045744, #0a8a6f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.featured-image-placeholder {
    text-align: center;
}

/* Post Content */
.post-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px 0;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 20px;
    color: #555;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
    color: #555;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #045744;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e74c3c;
}

.post-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Author Info */
.post-author {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar img {
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.author-details p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Social Sharing */
.post-sharing {
    padding: 30px 40px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.post-sharing h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.sharing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #0d8bd9;
    color: white;
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #005885;
    color: white;
}

.share-facebook {
    background: #4267b2;
    color: white;
}

.share-facebook:hover {
    background: #365899;
    color: white;
}

.share-email {
    background: #6c757d;
    color: white;
}

.share-email:hover {
    background: #5a6268;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #045744, #0a8a6f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-post-link {
    color: #045744;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.related-post-link:hover {
    color: #0a8a6f;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #e0e0e0;
}

.newsletter-signup h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.newsletter-signup p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 0 15px;
    }
    
    .post-header {
        padding: 30px 20px 15px 20px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-author {
        padding: 20px;
    }
    
    .post-sharing {
        padding: 20px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .sharing-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-featured-image {
        height: 250px;
        font-size: 3rem;
    }
    
    .post-content {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-signup {
        padding: 30px 20px;
    }
    
    .newsletter-signup form div {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .post-sharing,
    .newsletter-signup {
        display: none;
    }
    
    .blog-post {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .post-featured-image {
        background: #f8f9fa;
        color: #333;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.share-btn:focus,
.related-post-link:focus {
    outline: 2px solid #045744;
    outline-offset: 2px;
}
