/* Clean, minimal blog style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
header {
    padding: 40px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

header h1 a:hover {
    color: #666;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

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

/* Social Links in Header */
.social-links {
    display: inline-flex;
    gap: 15px;
    margin-left: 20px;
}

.social-links a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    margin-right: 0;
}

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

.social-links svg {
    vertical-align: middle;
}

/* Articles */
article {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

article:last-child {
    border-bottom: none;
}

article h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

article h2 a {
    color: #333;
    text-decoration: none;
}

article h2 a:hover {
    color: #0066cc;
}

.post-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

time, .post-date {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.author {
    color: #888;
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 20px;
}

.tags {
    margin: 15px 0;
    color: #666;
    font-size: 0.9em;
}

.tag {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}

/* Content */
.content, .post-content {
    margin-top: 20px;
    line-height: 1.7;
}

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

.content h1, .post-content h1,
.content h2, .post-content h2,
.content h3, .post-content h3,
.content h4, .post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.content h1, .post-content h1 { font-size: 2em; }
.content h2, .post-content h2 { font-size: 1.6em; }
.content h3, .post-content h3 { font-size: 1.3em; }
.content h4, .post-content h4 { font-size: 1.1em; }

.content a, .post-content a {
    color: #0066cc;
    text-decoration: none;
}

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

/* Code */
code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
}

pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Lists */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 40px 0;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px solid #333;
    color: #666;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #666;
    text-decoration: none;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #ddd;
    gap: 20px;
}

.pagination .pages {
    flex: 1;
    text-align: center;
    font-size: 1.1em;
}

.pagination .pages a {
    color: #0066cc;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 2px;
}

.pagination .pages a:hover {
    text-decoration: underline;
}

.pagination .pages strong {
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    margin: 0 2px;
    background: #f0f0f0;
    border-radius: 3px;
    display: inline-block;
}

.pagination .prev,
.pagination .next {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background 0.2s;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #f0f0f0;
}

.pagination .prev.disabled,
.pagination .next.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

/* Post Navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px 0;
    padding: 20px 0;
    border-top: 2px solid #ddd;
    gap: 20px;
}

.post-nav .home {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: background 0.2s;
}

.post-nav .home:hover {
    background: #333;
    color: #fff;
}

.post-nav .prev-post,
.post-nav .next-post {
    flex: 1;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.post-nav .prev-post {
    text-align: left;
}

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

.post-nav .prev-post:hover,
.post-nav .next-post:hover {
    text-decoration: underline;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.share-label {
    font-weight: 600;
    color: #666;
    margin: 0;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.2s;
}

.share-buttons a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
}

.share-buttons svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .post-title {
        font-size: 1.8em;
    }
}
