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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Navigation */
.article-nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 20px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-separator {
    color: var(--text-muted);
    font-size: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.back-link:first-child {
    margin-left: -10px;
}

.back-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.article-banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.article-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    padding: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start, #667eea) 0%, var(--gradient-end, #764ba2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.verified-badge {
    flex-shrink: 0;
}

.author-handle {
    font-size: 15px;
    color: var(--text-secondary);
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 36px 0 18px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--accent-color);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body strong {
    font-weight: 600;
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.article-body code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: transparent;
    padding: 0;
}

.article-meta {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 40px;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .article-nav {
        padding: 12px 16px;
    }

    .article-content {
        padding: 24px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-footer {
        padding: 24px;
    }
}
