/* ============================================
   Blog Post Styles - Individual Article Pages
   ============================================ */

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Post Header */
.post-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1d2e 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--color-white);
    gap: 0.75rem;
}

.post-category-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.post-header-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.post-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.post-stats span::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--color-accent);
}

/* Hero Image */
.post-hero-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.post-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Post Body */
.post-body {
    padding: 4rem 0;
    background: var(--color-white);
}

.post-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.post-body strong {
    color: var(--color-primary);
    font-weight: 600;
}

.post-body a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: #C85A1F;
}

/* Lists */
.post-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.post-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-body ol li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Blockquote */
.post-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(222, 110, 39, 0.05) 0%, rgba(45, 48, 71, 0.05) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
}

.post-quote p {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-primary);
    margin: 0;
    font-weight: 500;
}

/* Callout Box */
.post-callout {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-callout h4 {
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.post-callout ol,
.post-callout ul {
    margin: 0;
    padding-left: 1.5rem;
}

.post-callout li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

/* Author Bio */
.author-bio {
    padding: 4rem 0;
    background: var(--color-background);
}

.author-bio-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    flex-shrink: 0;
}

.author-bio-text h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.author-bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

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

.author-social-link {
    padding: 0.5rem 1.25rem;
    background: var(--color-white);
    border: 2px solid var(--color-light);
    border-radius: 50px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* CTA Section */
.post-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1d2e 100%);
}

.post-cta-content {
    text-align: center;
}

.post-cta-content h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.post-cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--color-white);
}

.related-posts-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

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

.related-post-card {
    padding: 2rem;
    background: var(--color-background);
    border-radius: 12px;
    border: 2px solid var(--color-light);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.related-post-category {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.related-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.related-post-link:hover {
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .post-header {
        padding: 6rem 0 2.5rem;
    }

    .post-header-title {
        font-size: 2.25rem;
    }

    .post-hero-image {
        margin-top: -2rem;
    }

    .author-bio-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 1.5rem;
    }

    .post-header {
        padding: 5rem 0 2rem;
    }

    .post-header-title {
        font-size: 1.85rem;
    }

    .post-header-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-body h2 {
        font-size: 1.65rem;
    }

    .post-body h3 {
        font-size: 1.35rem;
    }

    .post-body p,
    .post-list li,
    .post-body ol li {
        font-size: 1.05rem;
    }

    .post-quote p {
        font-size: 1.15rem;
    }

    .author-bio-avatar {
        width: 100px;
        height: 100px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-header-title {
        font-size: 1.5rem;
    }

    .post-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-social {
        flex-direction: column;
        width: 100%;
    }

    .author-social-link {
        text-align: center;
    }

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

    .post-cta-content p {
        font-size: 1.05rem;
    }
}
