/* Zero Day Diaries - Dark Theme */
/* Matches portfolio: #0a0a0a bg, #00e5a0 accent, monospace */

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text: #e0e0e0;
    --text-muted: #888888;
    --accent: #00e5a0;
    --accent-dim: rgba(0, 229, 160, 0.1);
    --border: #222222;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 800px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Blog Header */
.blog-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.blog-greeting {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.blog-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Post Cards (listing) */
.posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.post-card:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.post-card a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.post-card-header time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.read-more span { transition: margin-left 0.2s; }
.post-card:hover .read-more span { margin-left: 4px; }

/* Category & Tag badges */
.category, .tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: lowercase;
}

.category {
    background: var(--accent-dim);
    color: var(--accent);
}

.tag {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

/* Featured / External Publications */
.featured {
    margin-bottom: 2rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.featured-card {
    border-color: var(--accent);
    background: var(--bg-card);
}

.external-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single Post */
.post { padding: 2rem 0; }

.back-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.back-link:hover { text-decoration: underline; }

.post h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-meta time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Post Content */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 1.75rem 0 0.5rem;
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 0.5rem;
}

.post-content p {
    margin-bottom: 1rem;
    color: var(--text);
}

.post-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-content a:hover { border-bottom-color: var(--accent); }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 1rem 0;
}

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

.post-content li {
    margin-bottom: 0.4rem;
    color: var(--text);
}

.post-content li::marker { color: var(--accent); }

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--accent-dim);
    border-radius: 0 6px 6px 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent);
}

.post-content pre {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.pagination a:hover { text-decoration: underline; }

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav { padding: 1rem; }
    .container { padding: 1rem; }
    .blog-header { padding: 2rem 0 1.5rem; }
    .blog-header h1 { font-size: 1.5rem; }
    .post h1 { font-size: 1.5rem; }
    .post-content h2 { font-size: 1.3rem; }
    .post-content pre { padding: 0.75rem; }
}
