/* Medium-Inspired Blog Styles - Clean Minimal Design */

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

/* Typography */
body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.58;
    color: #242424;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #242424;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 34px;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

h3 {
    font-size: 28px;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 24px;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #1961ac;
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 97, 172, 0.3);
    transition: all 0.2s ease;
}

a:hover {
    border-bottom-color: #1961ac;
    color: #0f4472;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

/* Layout Container */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Header */
.blog-header {
    padding: 20px 0;
    border-bottom: 2px solid #1961ac;
    margin-bottom: 40px;
    background: linear-gradient(to right, rgba(25, 97, 172, 0.03), rgba(222, 220, 0, 0.02));
}

.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1961ac;
    text-decoration: none;
    border: none;
    transition: color 0.2s ease;
}

.blog-logo:hover {
    border: none;
    color: #dedc00;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

article {
    padding: 0;
}

/* Article Meta */
.article-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #757575;
    margin-bottom: 2em;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 4px;
    border-left: 3px solid #dedc00;
}

.article-meta span {
    display: inline-block;
}

.article-meta .separator {
    color: #E6E6E6;
}

/* Featured Image */
.featured-image {
    width: 100%;
    margin: 2.5em 0;
    border-radius: 4px;
}

/* Article Content */
.article-content {
    font-size: 21px;
    line-height: 1.58;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.8em;
}

.article-content blockquote {
    border-left: 4px solid #1961ac;
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #757575;
    background: rgba(25, 97, 172, 0.02);
    padding: 1em 1.5em;
    border-radius: 0 4px 4px 0;
}

.article-content code {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    background-color: #F5F5F5;
    padding: 2px 6px;
    border-radius: 3px;
}

.article-content pre {
    background-color: #F5F5F5;
    padding: 1.5em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2em 0;
}

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

/* Footer */
.blog-footer {
    border-top: 2px solid #dedc00;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(to right, rgba(222, 220, 0, 0.02), rgba(25, 97, 172, 0.03));
}

.blog-footer a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #1961ac;
    font-weight: 500;
}

/* Blog Index Page Styles */
.blog-index {
    padding: 40px 0;
    margin-top: 85px;
}

.blog-index h1 {
    font-size: 48px;
    margin-bottom: 0.3em;
}

.blog-index .subtitle {
    font-size: 20px;
    color: #1961ac;
    margin-bottom: 3em;
    font-weight: 500;
}

.blog-list {
    list-style: none;
}

.blog-post-card {
    padding: 2em 0;
    border-bottom: 1px solid #E6E6E6;
    border-left: 3px solid transparent;
    padding-left: 1em;
    transition: all 0.2s ease;
}

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

.blog-post-card:hover {
    border-left-color: #1961ac;
    background: rgba(25, 97, 172, 0.01);
    padding-left: 1.5em;
}

.blog-post-card h2 {
    font-size: 28px;
    margin-bottom: 0.5em;
}

.blog-post-card h2 a {
    border: none;
    color: #1961ac;
}

.blog-post-card h2 a:hover {
    color: #0f4472;
    border-bottom: 2px solid #dedc00;
}

.blog-post-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #757575;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-post-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #4A4A4A;
    margin-top: 0.8em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 4px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    body {
        font-size: 18px;
    }
    
    .article-content {
        font-size: 18px;
    }
    
    .blog-index h1 {
        font-size: 36px;
    }
    
    .blog-post-card h2 {
        font-size: 24px;
    }
    
    .blog-post-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 4px;
    }
    
    .article-meta,
    .blog-post-meta {
        font-size: 13px;
        flex-wrap: wrap;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.mb-3 { margin-bottom: 3em; }

