* {
    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;
}

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

/* Header & Navigation */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

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

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

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

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

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn:hover {
    background: #0056b3;
}

/* About Preview */
.about-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.about-preview h2 {
    margin-bottom: 1rem;
}

.about-preview a {
    color: #007bff;
    text-decoration: none;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-preview {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-preview h2 {
    margin-bottom: 0.5rem;
}

.blog-preview h2 a {
    color: #333;
    text-decoration: none;
}

.blog-preview h2 a:hover {
    color: #007bff;
}

.blog-preview time {
    color: #666;
    font-size: 0.9rem;
}

.blog-preview p {
    margin: 1rem 0;
    color: #666;
}

.read-more {
    color: #007bff;
    text-decoration: none;
}

/* Blog Post */
.blog-post h1 {
    margin-bottom: 0.5rem;
}

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

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

.back-link {
    color: #007bff;
    text-decoration: none;
}

/* About Content */
.about-content {
    max-width: 700px;
}

.about-content h1 {
    margin-bottom: 1.5rem;
}

.about-content h2 {
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.tag:hover,
.tag.active {
    background: #007bff;
    color: #fff;
}

/* Tags Filter */
.tags-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.tags-label {
    font-weight: 500;
    color: #666;
    margin-right: 0.5rem;
}

.filter-status {
    color: #666;
    margin-top: 0.5rem;
}

.clear-filter {
    color: #007bff;
    text-decoration: none;
    margin-left: 0.5rem;
}

.clear-filter:hover {
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Markdown Content Styles */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

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

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

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

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

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

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

.post-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    font-style: italic;
}

.post-content blockquote > p {
    margin: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.post-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.post-content table tr:hover {
    background: #f8f9fa;
}

/* Code Blocks */
.post-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #0d1117;
    border-radius: 6px;
    overflow-x: auto;
}

.post-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

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

.post-content :not(pre) > code {
    background: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #e01e5a;
}

.post-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #eee;
}

/* Buttons */
.btn-secondary {
    background: #6c757d;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #5a6268;
}

.blog-preview h3 {
    margin-bottom: 0.5rem;
}

.blog-preview h3 a {
    color: #333;
    text-decoration: none;
}

.blog-preview h3 a:hover {
    color: #007bff;
}

/* Recent Posts Section */
.recent-posts {
    margin-top: 3rem;
}

.recent-posts h2 {
    margin-bottom: 2rem;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}
