/* Blog-specific styles */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.blog-header h1 {
    margin: 0;
    font-size: 2rem;
}

.home-link {
    color: var(--primary);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    transition: opacity 0.3s ease;
}

.home-link:hover {
    opacity: 0.8;
}

.blog-nav {
    display: flex;
    gap: 2rem;
}

.blog-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.blog-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.blog-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-preview {
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.blog-post-preview:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.1);
}

.blog-post-preview.featured {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-post-preview.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.blog-post-preview.featured:hover {
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.2);
}

.blog-post-preview time {
    color: var(--secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.blog-post-preview h3 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.blog-post-preview h3 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-post-preview p {
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.read-time {
    color: var(--secondary);
    font-family: 'Space Mono', monospace;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

/* Blog post styles */
.blog-post {
    max-width: 750px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

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

.post-header .post-meta {
    justify-content: center;
    gap: 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 2.5rem 0 1rem 0;
    font-size: 1.8rem;
}

.post-content h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    color: var(--secondary);
}

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

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

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

.post-content code {
    background: rgba(0, 255, 65, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-dark);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
}

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

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.post-content a:hover {
    text-decoration-thickness: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .blog-nav {
        gap: 1.5rem;
    }
    
    .blog-hero h2 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
}