/* Blog Stylesheet */
:root {
    --bg-primary: #0a0a0a;
    --bg-surface: #111;
    --bg-card: #0d1117;
    --bg-border: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent: #8b9eff;
    --accent-hover: #a3bffa;
    --accent-purple: #c084fc;
    --accent-green: #86efac;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, #111 0%, #000 80%);
    opacity: 0.6;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--bg-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Merriweather', Georgia, serif;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid */
.articles-section {
    padding: 2rem 0 5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(139, 158, 255, 0.15);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 158, 255, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.separator {
    opacity: 0.5;
}

/* Article Page */
.article-header {
    padding: 3rem 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bg-border);
    border-bottom: 1px solid var(--bg-border);
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-content {
    max-width: 800px;
    margin: 3rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(139, 158, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    background: var(--bg-surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

/* Related Articles */
.related-section {
    max-width: 800px;
    margin: 4rem auto;
    padding-top: 3rem;
    border-top: 1px solid var(--bg-border);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-title a {
    color: var(--text-primary);
}

/* Categories Page */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About/Contact Pages */
.content-page {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem 5rem;
}

.content-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.content-page a {
    color: var(--accent);
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--bg-border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
}