/* Enhanced Blog Post Styles */

/* Blog Post Hero */
.blog-post-hero {
    position: relative;
    margin: -2rem -20px 2rem;
    height: 400px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Enhanced Meta Section */
.blog-meta-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.share-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-subtle);
    border-left: 3px solid var(--blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.table-of-contents h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li {
    margin: 0.5rem 0;
}

.toc-h3 {
    padding-left: 1.5rem;
}

.toc-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
    display: inline-block;
    padding: 0.25rem 0;
}

.toc-link:hover {
    color: var(--blue);
}

.toc-link.active {
    color: var(--blue);
    font-weight: 600;
}

/* Enhanced Blog Content */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-content h2 {
    margin: 3rem 0 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--navy);
    position: relative;
}

.blog-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
}

.blog-content p {
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--blue);
    padding: 1.5rem;
    padding-left: 2rem;
    margin: 2rem 0;
    background: var(--bg-subtle);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

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

.blog-content code {
    background: var(--bg-subtle);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--blue);
}

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

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

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

.blog-content li {
    margin: 0.75rem 0;
    line-height: 1.8;
}

/* Inline Newsletter */
.inline-newsletter {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.inline-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.inline-newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.inline-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.inline-newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.inline-newsletter-form button {
    padding: 0.875rem 2rem;
    background: white;
    color: var(--navy);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.inline-newsletter-form button:hover {
    transform: scale(1.05);
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Post Footer */
.blog-post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Post Tags */
.post-tags {
    margin-bottom: 3rem;
}

.post-tags h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-list a {
    padding: 0.5rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tags-list a:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-subtle);
    border-radius: 12px;
    margin: 3rem 0;
}

.author-bio-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-content {
    flex: 1;
}

.author-bio-content h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.author-bio-content p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.author-social a:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
}

.related-posts h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    height: 160px;
    background: var(--bg-subtle);
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

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

.related-post-content time {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.related-post-content h3 {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

.related-post-content h3 a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-content h3 a:hover {
    color: var(--blue);
}

.related-post-content .read-time {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Comments Section */
.comments-section {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--bg-subtle);
    border-radius: 12px;
}

.comments-section h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post-hero {
        height: 250px;
        margin: -2rem -20px 1.5rem;
    }
    
    .blog-meta-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .blog-content {
        font-size: 1.0625rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .inline-newsletter-form {
        flex-direction: column;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-image {
        margin: 0 auto;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}