/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    text-decoration: none;
}

.site-title:hover {
    text-decoration: none;
    color: #004499;
}

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

.nav-links a {
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Home page */
.home-page .hero {
    max-width: 800px;
    margin: 0 auto;
}

.home-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.home-page h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #444;
}

.home-page p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.home-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.home-page li {
    margin-bottom: 0.5rem;
}

/* Blog section */
.blog-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    margin-bottom: 3rem;
}

.blog-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Blog posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post-summary {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

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

.post-header h2 {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #222;
    font-size: 1.8rem;
    font-weight: 600;
}

.post-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-meta time {
    font-weight: 500;
}

.categories,
.post-categories,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.category,
.tag {
    background: #f0f4f8;
    color: #0066cc;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category:hover,
.tag:hover {
    background: #e1e8ef;
    text-decoration: none;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
}

.post-excerpt p {
    margin-bottom: 1rem;
}

.read-more {
    color: #0066cc;
    font-weight: 500;
}

/* Individual blog post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post .post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.blog-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
    line-height: 1.3;
}

.blog-post .post-meta {
    justify-content: center;
    font-size: 1rem;
}

.post-updated {
    font-style: italic;
    color: #888;
}

.post-content {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    color: #222;
}

.post-content h1 {
    font-size: 2rem;
}
.post-content h2 {
    font-size: 1.7rem;
}
.post-content h3 {
    font-size: 1.4rem;
}
.post-content h4 {
    font-size: 1.2rem;
}

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

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

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

.post-content blockquote {
    border-left: 4px solid #0066cc;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    font-style: italic;
}

.post-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

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

/* Featured image styles */
.post-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.legacy-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.legacy-notice p {
    margin: 0;
    color: #8b6914;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #0066cc;
    font-weight: 500;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
    text-decoration: none;
}

.back-to-blog {
    text-align: center;
}

.back-to-blog a {
    color: #666;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #e1e5e9;
}

.pagination-link {
    padding: 0.75rem 1.5rem;
    background: #0066cc;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.pagination-link:hover {
    background: #004499;
    text-decoration: none;
}

.pagination-info {
    color: #666;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .home-page h1 {
        font-size: 2rem;
    }

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

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

    .post-title a {
        font-size: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0.5rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .home-page h1 {
        font-size: 1.8rem;
    }

    .section-header h1 {
        font-size: 1.8rem;
    }

    .blog-post .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
