:root {
    --accent: #5F62E7;
    --accent-hover: #4f52d7;
    --bg: #0a0b0f;
    --surface: #13151c;
    --surface2: #1a1d27;
    --border: #252836;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

body.light,
:root.light {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface2: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
}

:root,
body.light,
:root.light {
    --bg-surface: var(--surface);
    --bg-elevated: var(--surface2);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 64px;
}

.article-hero {
    padding: 64px 24px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(95, 98, 231, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.article-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text-muted);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--text);
}

.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text);
}

.article-content strong {
    font-weight: 600;
    color: var(--accent);
}

.article-content em {
    font-style: italic;
    color: var(--text-muted);
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-content li {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--surface2);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
}

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

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

.article-callout {
    margin: 32px 0;
    padding: 24px;
    background: var(--surface2);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.article-callout h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.article-tags {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(95, 98, 231, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--accent);
    color: white;
}

.related-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.related-posts h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    gap: 20px;
}

.related-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateX(8px);
    border-color: var(--accent);
    background: var(--surface2);
}

.related-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content {
        padding: 32px 20px 60px;
    }
}
