/* 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: #f8f9fa;
}

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

/* Header and navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

/* Main content */
main {
    padding: 2rem 0;
}

/* Post styles */
.post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

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

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.post-meta time {
    margin-right: 1rem;
}

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

.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.post-content a {
    color: #007bff;
    text-decoration: none;
}

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

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-navigation a {
    color: #007bff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.post-navigation a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Post footer */
.post-footer {
    background-color: transparent;
    margin-top: 2rem;
}

/* Homepage post list */
.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 2rem;
}

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

.post-list h2 a {
    color: #333;
    text-decoration: none;
}

.post-list h2 a:hover {
    color: #007bff;
}

.post-list .post-meta {
    margin-bottom: 1rem;
}

.post-list .excerpt {
    color: #666;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
} 