/* Blog Post Styles - Extends main index.css */

/* Hide the canvas background on blog pages */
#dynamic-background {
    display: none;
}

/* Main content wrapper - white background */
main {
    position: relative;
    z-index: 10;
    background: #f5f5f0;
}

body {
    background: #f5f5f0;
}

/* Article Layout */
.blog-article {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem var(--container-padding) var(--space-xl);
}

.blog-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.blog-pillar-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: #b8860b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.15);
    padding: 0.25rem 0.5rem;
}

.blog-category {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.blog-subtitle {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    font-weight: 400;
}

/* Blog Content */
.blog-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

.blog-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.blog-content h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.blog-content p {
    margin-bottom: var(--space-sm);
}

.blog-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.blog-content em {
    color: #b8860b;
    font-style: italic;
}

.blog-content a {
    color: #b8860b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease-out);
}

.blog-content a:hover {
    border-bottom-color: #b8860b;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

.blog-content li {
    margin-bottom: var(--space-xs);
}

.blog-content blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid #b8860b;
    background: #fff;
    font-style: italic;
    color: #1a1a1a;
}

.blog-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1em 0.35em;
    border-radius: 2px;
    color: #b8860b;
}

.blog-content pre {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow-x: auto;
}

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

/* Lead Paragraph */
.blog-content .lead {
    font-size: 1.1rem;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

/* Tool/Example Cards */
.tool-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    transition: border-color 0.2s var(--ease-out);
}

.tool-card:hover {
    border-left-color: #b8860b;
}

.tool-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.tool-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.6;
    color: #b8b8b8;
}

/* Use Case Section */
.use-case {
    background: #fff;
    border-left: 3px solid #b8860b;
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
}

.use-case h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #b8860b;
    margin-bottom: var(--space-xs);
}

.use-case p {
    margin-bottom: 0;
    color: #444;
}

/* Navigation */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.blog-nav a:hover {
    color: #b8860b;
}

.blog-nav .prev::before {
    content: '←';
    margin-right: 0.25rem;
}

.blog-nav .next::after {
    content: '→';
    margin-left: 0.25rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s var(--ease-out);
}

.back-link:hover {
    color: #b8860b;
}

/* Animations */
.blog-header {
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.blog-content {
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* Footer overrides for light background */
.footer {
    background: #f5f5f0;
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-cta {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.footer-cta-text {
    color: #1a1a1a;
}

.footer-nav a {
    color: #555;
}

.footer-nav a:hover {
    color: #b8860b;
}

.footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-article {
        padding-top: 6rem;
    }

    .blog-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
