/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4aa;
    --dark: #1a1a1b;
    --darker: #0d0d0e;
    --text: #e0e0e0;
    --text-muted: #888;
    --border: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--darker);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
nav {
    background-color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-title {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-content .tagline {
    font-style: italic;
    color: var(--primary);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #00ffcc;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-card {
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.post-card h3 a {
    color: var(--text);
    font-weight: 600;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Posts List */
.posts-list article {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.posts-list article:last-child {
    border-bottom: none;
}

/* Blog Post */
.blog-post {
    max-width: 700px;
}

.blog-post h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
}

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

.post-content h2 {
    margin-top: 2rem;
    color: var(--primary);
}

.post-content h3 {
    margin-top: 1.5rem;
}

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

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

.post-content code {
    background-color: var(--dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background-color: var(--dark);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* About Page */
.about-content {
    max-width: 650px;
}

.profile-section {
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-section h2 {
    margin-top: 0;
    color: var(--primary);
}

.profile-section ul {
    list-style: none;
}

.profile-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.profile-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--darker);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #00ffcc;
}

/* Footer */
footer {
    background-color: var(--dark);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
