/* Blog Post Template Styles */
/* Clean, modern, professional blog post layout */

:root {
    --primary: #c3151c;
    --primary-light: #fee2e2;
    --dark: #0f172a;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
}

/* Sticky Navbar */
.post-navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.post-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.post-navbar .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.post-navbar .logo span {
    color: var(--primary);
}

.post-navbar .back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.post-navbar .back-link:hover {
    color: var(--primary);
}

/* Article Container */
.post-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* Breadcrumb Link */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.breadcrumb:hover {
    opacity: 0.8;
}

/* Category Badge */
.post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Post Title */
.post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    object-fit: cover;
    max-height: 400px;
}

/* Content Typography */
.post-content {
    font-size: 1.1rem;
}

.post-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.post-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--background);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.post-content code {
    background: var(--background);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, var(--primary-light), #fff1f2);
    border: 1px solid #fecaca;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.key-takeaways h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.key-takeaways ul {
    margin: 0;
}

/* CTA Section */
.post-cta {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--dark), #1e293b);
    border-radius: 1.5rem;
    text-align: center;
    color: white;
}

.post-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.post-cta .btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(195, 21, 28, 0.4);
}

/* Share Section */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-share span {
    font-weight: 600;
    color: var(--text-muted);
}

.post-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.post-share a:hover {
    background: var(--primary);
    color: white;
}

/* Author Box */
.post-author {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 1rem;
    margin-top: 3rem;
}

.post-author img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.post-author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.related-grid {
    display: grid;
    gap: 1.5rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-item:hover {
    transform: translateX(4px);
}

.related-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.related-item-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .post-article {
        padding: 2rem 1.25rem 3rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .post-cta {
        padding: 1.75rem;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }

    .post-author img {
        margin: 0 auto;
    }
}