/* --- BLOG NAVIGATION & HEADER OVERRIDES --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    background-color: var(--switcher-bg);
    color: var(--color-text);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: color-mix(in srgb, var(--switcher-bg) 80%, black);
}

.home-link {
    text-decoration: none;
    color: var(--color-primary);
}


/* --- BLOG LIST & EXCERPTS --- */
.blog-main h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-excerpt {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
}

.post-excerpt:last-child {
    border-bottom: none;
}

.post-excerpt h3 a {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s;
}

.post-excerpt h3 a:hover {
    color: var(--color-primary);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0.25rem 0 1rem 0;
}

.post-excerpt p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

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

/* --- SINGLE POST STYLES --- */
.post-full .post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.post-full .post-header h1 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-full .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 720px; /* Optimal reading width */
    margin: 0 auto;
}

.post-full .post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    color: var(--color-primary);
}

.post-full .post-content p, 
.post-full .post-content ul, 
.post-full .post-content ol {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.post-full .post-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.post-full .post-content a:hover {
    border-bottom-color: var(--color-primary);
}


.post-full .post-content li {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.back-link {
    display: block;
    text-align: center;
    margin: 3rem auto 0 auto;
    max-width: 720px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}