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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.site-header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.language-nav {
    margin-top: 0.5rem;
}

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

.language-nav a:hover {
    color: #3498db;
}

.language-nav .current-lang {
    color: #3498db;
    font-weight: 600;
}

/* Main content */
.page-content {
    min-height: 70vh;
    padding: 2rem 0;
}

/* Language home page */
.language-home h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.language-home .description {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.category-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.category-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-section h2 a {
    color: inherit;
    text-decoration: none;
}

.category-section h2 a:hover {
    color: #3498db;
}

.posts-preview {
    display: grid;
    gap: 1rem;
}

.post-preview {
    border-left: 3px solid #3498db;
    padding-left: 1rem;
}

.post-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.post-preview h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-preview h3 a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* Post styles */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.post-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

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

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

.post-tags {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin: 0 0.2rem;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.post-nav a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
.site-footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* No content message */
.no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

/* Responsive design */
@media (max-width: 768px) {
    .language-home h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}