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

:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-color: #fff;
    --code-bg: #f6f8fa;
    --link-color: #0066cc;
    --link-hover: #004999;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    margin-bottom: 60px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

nav {
    margin-bottom: 25px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    color: var(--text-light);
    transition: color 0.2s ease;
}

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

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Profile section */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 30px;
    object-fit: cover;
}

.bio {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 auto;
    max-width: 600px;
}

/* Main content */
main {
    margin-bottom: 60px;
}

main h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Blog list */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.blog-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-item h3 a:hover {
    color: var(--link-color);
}

.blog-item time {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-item p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Blog post */
.blog-post header {
    text-align: left;
    border-bottom: none;
    margin-bottom: 40px;
}

.blog-post h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--code-bg);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Post content */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--link-color);
}

.post-content ul,
.post-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content code {
    background-color: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: var(--code-bg);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.post-content blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-style: italic;
}

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

/* Post footer */
.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-footer a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.post-footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    nav a {
        margin: 0 10px;
    }
    
    .blog-post h2 {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}
