/* Puya Blog – matches main site theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --success: #10b981;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px 0 24px;
}

.blog-header .logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.blog-header .logo:hover {
    opacity: 0.9;
}

.blog-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.blog-nav {
    margin-top: 16px;
}

.blog-nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.95rem;
}

.blog-nav a:hover {
    text-decoration: underline;
}

/* Article list */
.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.article-list a:hover {
    color: var(--primary-color);
}

.article-list .meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Article page */
.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-header .meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-header .meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-header .meta a:hover {
    text-decoration: underline;
}

.article-content {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
}

.article-content pre {
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content .cta-box {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 2rem 0;
}

.article-content .cta-box p {
    margin-bottom: 12px;
}

.article-content .cta-box a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
}

.article-content .cta-box a:hover {
    opacity: 0.95;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

footer.blog-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

footer.blog-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer.blog-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6rem;
    }
}
