/* Blog Post Template Styles - Matching Site Design */

/* Color Variables - Match main site */
:root {
    --accent-color: #BBE349;
    --accent-hover: #a8cc3a;
    --dark-text: #221F20;
    --body-text: #52525b;
    --muted-text: #71717a;
    --lighter-gray: #a1a1aa;
    --border-gray: #f4f4f5;
    --bg-light: #F8F9FA;
}

/* Main Layout - Gray background like home page */
.blog-post-main {
    padding-top: 73px;
    background: #f8f9fa;
    min-height: 100vh;
}

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* White content box wrapper */
.blog-post-hero,
.blog-post-image-section,
.blog-post-content,
.blog-post-footer-section {
    background: white;
}

/* Add container wrapper for white box effect */
.blog-post-main > section,
.blog-post-main > div {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

/* Hero Section */
.blog-post-hero {
    padding: 2rem 0 1rem;
}

@media (min-width: 768px) {
    .blog-post-hero {
        padding: 2.5rem 0 1.5rem;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4d4d8;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--dark-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .post-title {
        font-size: 3rem;
    }
}

.post-subtitle {
    font-size: 1.125rem;
    color: var(--body-text);
    line-height: 1.5;
    margin-bottom: 0;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 768px) {
    .post-subtitle {
        font-size: 1.25rem;
    }
}

/* Hero Image Section */
.blog-post-image-section {
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .blog-post-image-section {
        padding: 1.5rem 0;
    }
}

.post-hero-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.post-hero-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .post-hero-image {
        border-radius: 1rem;
    }

    .post-hero-image img {
        max-height: 500px;
    }
}

/* Content Sections - Reduced spacing */
.blog-post-content {
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .blog-post-content {
        padding: 2rem 0;
    }
}

.post-default-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--body-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.post-default-text strong {
    color: var(--dark-text);
    font-weight: 600;
}

@media (min-width: 768px) {
    .post-default-text {
        font-size: 1.125rem;
        line-height: 1.75;
    }
}

/* Dynamic Content Sections */
.content-section-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--dark-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 768px) {
    .content-section-title {
        font-size: 1.875rem;
        margin-bottom: 1.25rem;
    }
}

.content-section-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--body-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.content-section-text strong {
    color: var(--dark-text);
    font-weight: 600;
}

@media (min-width: 768px) {
    .content-section-text {
        font-size: 1.125rem;
        line-height: 1.75;
    }
}

/* Footer Section */
.blog-post-footer-section {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border-gray);
}

@media (min-width: 768px) {
    .blog-post-footer-section {
        padding: 2.5rem 0 3rem;
    }
}

/* Post navigation wrapper */
.post-navigation {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary-foreground);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.back-to-blog-btn:hover {
    background: var(--muted);
    transform: scale(1.05);
}

/* Related post button */
.related-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary-foreground);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.related-post-btn:hover {
    background: var(--muted);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
    }
}

/* Icon Sizes */
.icon-small {
    width: 1rem;
    height: 1rem;
}

/* Remove old styles */
.blog-post-content.gray-bg {
    background: white;
}

.toc-sidebar,
.mobile-toc-toggle,
.toc-overlay {
    display: none !important;
}
