/* Blog Hero */
.blog-hero {
    background: var(--bg-dark);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-tagline {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Blog Posts Grid */
.blog-posts {
    background: var(--bg-dark);
    padding: 4rem 2rem;
}

.blog-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Post Card */
.post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.post-card .post-date {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.post-card .post-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

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

.post-link svg {
    width: 16px;
    height: 16px;
}

/* Single Post Article */
.post-article {
    background: var(--bg-dark);
    padding: 8rem 2rem 4rem;
    min-height: 60vh;
}

.post-header {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.post-header .post-date {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.post-header .post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    line-height: 1.3;
}

/* Post Content (Markdown) */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        padding: 1.5rem;
    }
}
