/* Blog Styles */
:root {
    --bg-color: #171717;
    --text-color: #ffffff;
    --link-color: #4a90e2;
    --link-hover-color: #2a6fbf;
    --border-color: #333;
    --secondary-text: #a0a0a0;
    --font-family: 'Inter', sans-serif;
    --max-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1rem;
    /* Increased top padding since nav is gone */
    flex: 1;
}

/* Blog List */
.blog-list h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.post-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    color: var(--text-color);
    /* Default text color, not link color */
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    /* Reserve space for border if needed, or just spacing */
    transition: opacity 0.2s ease;
}

.post-item:hover .post-title {
    color: var(--link-color);
}

.post-date {
    color: var(--secondary-text);
    font-family: monospace;
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 100px;
    /* Fixed width for alignment */
}

.post-title {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Single Post */
.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.blog-post .post-meta {
    margin-bottom: 3rem;
    color: var(--secondary-text);
}

.blog-content {
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

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

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

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

.blog-content blockquote {
    border-left: 4px solid var(--link-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #d4d4d4;
    /* Lighter gray for better contrast */
    font-style: italic;
}

.blog-content code {
    background-color: #2a2a2a;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Post Footer */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--secondary-text);
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: var(--link-color);
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }

    .blog-list h1,
    .blog-post h1 {
        font-size: 2rem;
    }

    .post-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .post-date {
        width: auto;
        font-size: 0.8rem;
    }
}

.blog-intro {
    margin-bottom: 3rem;
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 600px;
}