/* =========================================
   Blog-specific styles — layered on top of styles.css
   ========================================= */

/* Header nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.header-nav a:not(.btn):hover,
.header-nav a:not(.btn).active {
    color: var(--text-primary);
}

/* Blog Hero */
.blog-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Blog Grid */
.blog-grid-section {
    padding: 2rem 0 8rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
}

/* Featured card spans full width */
.blog-card.featured {
    grid-column: 1 / -1;
    padding: 3rem;
}

.blog-card.featured .blog-card-title {
    font-size: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--accent-color);
}

.blog-card-excerpt {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
    align-self: flex-start;
}

.blog-read-more:hover {
    text-decoration: underline;
}

.blog-read-more.muted {
    color: var(--text-secondary);
    cursor: default;
}

/* =========================================
   Individual Post styles
   ========================================= */

.post-container {
    padding: 4rem 0 8rem;
}

.post-inner {
    max-width: 780px;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

.post-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Table of Contents */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.toc ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--accent-color);
}

/* Post body sections */
.post-inner section {
    margin-bottom: 3.5rem;
}

.post-inner h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

.post-inner h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-inner p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.post-inner p strong {
    color: var(--text-primary);
}

.post-inner a {
    color: var(--accent-color);
}

.post-inner ol,
.post-inner ul {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-inner li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-inner li strong {
    color: var(--text-primary);
}

.post-inner code {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.95em;
}

/* FAQ section */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.75rem 0;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Post CTA */
.post-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.post-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.post-cta p {
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Post nav */
.post-nav {
    margin-top: 2rem;
    padding-top: 2rem;
}

.post-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.post-nav a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured {
        grid-column: 1 / 2;
        padding: 2rem;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .header-nav a:not(.btn) {
        display: none;
    }
}
