/* DarkPixelTech-inspired minimal design */
:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --text-secondary: #a1a1a1;
    --border-color: #2a2a2a;
    --accent-color: #2563eb;  /* Blue accent - can be changed */
    --hover-bg: #1a1a1a;
    --code-bg: #1a1a1a;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

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

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    margin-bottom: 60px;
}

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

.site-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 32px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.site-nav a:hover {
    color: rgba(0, 255, 0, 0.8);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
    transform: translateY(-1px);
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
    margin-bottom: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code */
code {
    background-color: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

pre {
    background: rgba(0, 20, 0, 0.8) !important;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    font-family: 'Courier New', monospace;
    position: relative;
}

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

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Homepage styles */
.home-intro {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.home-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.home-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Post list */
.post-list {
    list-style: none;
    padding: 0;
}

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

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

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-summary {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.post-content {
    margin-bottom: 3rem;
}

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

/* Tags */
.post-tags {
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    background-color: var(--hover-bg);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .site-nav a {
        margin: 0 16px;
    }
    
    .home-intro h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: var(--accent-color);
    color: white;
}