/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: #0066cc;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

.nav-links a.active {
    text-decoration: underline;
}

/* Welcome section */
.welcome {
    padding: 3rem 0;
}

.welcome h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.welcome p {
    color: #666;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #666;
}

.social-links svg {
    fill: currentColor;
}

.social-icon {
    padding: 2px;
    fill: #666;
}

/* Posts section */
.posts {
    padding: 2rem 0;
}

.sigh {
    background-color: #0066cc;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
    transition: transform 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #000;
}

.post-card h2:hover {
    color: #0066cc;
}

.post-card p {
    color: #666;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

/* Post page specific styles */
.post-page {
    padding: 2rem 0;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Markdown content styling */
.post-content h2, .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

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

.post-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    font-family: 'SF Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
}

.post-content blockquote {
    border-left: 4px solid #ddd;
    margin: 0;
    padding-left: 1rem;
    color: #666;
}

/* Error message styling */
.error-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.error-message h2 {
    color: #c53030;
    margin-bottom: 1rem;
}

.error-message ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.error-message a {
    color: #2b6cb0;
    text-decoration: none;
}

.error-message a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .welcome h1 {
        font-size: 1.75rem;
    }
    
    .post-card h2 {
        font-size: 1.5rem;
    }
}


.table-of-contents {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.table-of-contents button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.table-of-contents button::before {
    content: '▶';
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.table-of-contents button.active::before {
    transform: rotate(90deg);
}

.table-of-contents {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.table-of-contents button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.table-of-contents button::before {
    content: '▶';
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.table-of-contents button.active::before {
    transform: rotate(90deg);
}