* {
    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);
    line-height: 1.6;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.blog-nav {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-nav-left {
    display: flex;
    align-items: center;
}

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

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

/* Header */
.blog-header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.blog-header .author-avatar {
    width: 80px;
    height: 80px;
    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;
    overflow: hidden;
}

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

.blog-header .author-avatar span {
    color: white;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

.author-info {
    text-align: center;
}

.blog-header .author-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* Content */
.blog-content {
    padding: 40px 0;
}

.articles-grid {
    display: grid;
    gap: 32px;
}

/* Article Card */
.article-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-image {
    width: 100%;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.02);
}

.article-body {
    padding: 24px;
}

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

.article-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta time {
    color: var(--text-secondary);
}

.reading-time {
    color: var(--text-muted);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-articles p {
    font-size: 18px;
}

/* Footer */
.blog-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.blog-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .blog-header {
        padding: 40px 0 32px;
    }

    .blog-header .author-avatar {
        width: 64px;
        height: 64px;
    }

    .blog-header .author-avatar span {
        font-size: 24px;
    }

    .blog-header .author-name {
        font-size: 24px;
    }

    .article-body {
        padding: 20px;
    }

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

    .article-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
}
