/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

header h1 a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1.8em;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

nav a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff6b6b;
}

/* Main Content */
main {
    min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

a {
    color: #6b9eff;
    text-decoration: none;
}

a:hover {
    color: #8bb4ff;
    text-decoration: underline;
}

/* Post Styles */
.post-header, .page-header {
    margin-bottom: 30px;
}

.post-header time {
    color: #888;
    font-size: 0.9em;
}

.post-content, .page-content {
    font-size: 1.05em;
    line-height: 1.7;
}

.post-content p, .page-content p {
    margin-bottom: 1em;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.tag {
    display: inline-block;
    background: #333;
    color: #ff6b6b;
    padding: 4px 12px;
    margin: 4px;
    border-radius: 3px;
    font-size: 0.85em;
}

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

.post-list-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-list-item h2 {
    margin-top: 0;
}

.post-list-item time {
    color: #888;
    font-size: 0.9em;
}

.post-list-item p {
    margin-top: 10px;
    color: #b0b0b0;
}

/* Project Cards */
.project-list {
    list-style: none;
}

.project-card {
    background: #252525;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b6b;
}

.project-card h2 {
    margin-top: 0;
}

.project-card .project-meta {
    color: #888;
    font-size: 0.9em;
    margin: 10px 0;
}

.project-card .project-description {
    margin: 15px 0;
}

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

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

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

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

/* Utility Classes */
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #ff6b6b;
}

.read-more:hover {
    color: #ff8787;
}
