:root {
    /* Primary Colors from house-style.md */
    --primary-600: #6D28D9;
    --primary-500: #7C3AED;
    --primary-400: #8B5CF6;
    --primary-300: #A78BFA;
    --primary-200: #C4B5FD;
    --primary-100: #E9D5FF;
    --primary-50: #FAF5FF;
    
    /* Neutral Colors */
    --neutral-900: #0A0A0B;
    --neutral-800: #18181B;
    --neutral-700: #27272A;
    --neutral-600: #52525B;
    --neutral-500: #71717A;
    --neutral-400: #A1A1AA;
    --neutral-300: #D4D4D8;
    --neutral-200: #E4E4E7;
    --neutral-100: #F4F4F5;
    --neutral-50: #FAFAFA;
    
    /* Semantic Colors */
    --success-500: #10B981;
    --success-100: #D1FAE5;
    --warning-500: #F59E0B;
    --warning-100: #FEF3C7;
    --error-500: #EF4444;
    --error-100: #FEE2E2;
    --info-500: #3B82F6;
    --info-100: #DBEAFE;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(124, 58, 237, 0.06);
    --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 8px 24px rgba(124, 58, 237, 0.12);
}

/* Article Header */
.article-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-50) 0%, #FFFFFF 50%);
    border-bottom: 1px solid var(--neutral-200);
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--neutral-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-100);
    object-fit: cover;
}

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

.author-name {
    font-weight: 600;
    color: var(--neutral-700);
    display: block;
}

.publish-date {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--neutral-500);
}

/* Feature Image */
.feature-image-container {
    max-width: 1000px;
    margin: -40px auto 60px;
    padding: 0 24px;
}

.feature-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--neutral-100);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Typography for article content - Clean and readable */
.article-body {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--neutral-700);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-weight: 700;
    color: var(--neutral-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.article-body h1 { font-size: 2.25rem; }
.article-body h2 { font-size: 1.875rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }
.article-body h5 { font-size: 1.125rem; }
.article-body h6 { font-size: 1rem; }

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

.article-body a {
    color: var(--primary-500);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: var(--primary-600);
    text-decoration-thickness: 2px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    border-radius: 8px;
    font-style: italic;
    color: var(--neutral-700);
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--neutral-900);
    color: var(--neutral-100);
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.625;
}

.article-body code {
    padding: 2px 6px;
    background: var(--neutral-100);
    color: var(--primary-600);
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875em;
}

.article-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-body hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--neutral-200);
}

.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.article-body th,
.article-body td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.article-body th {
    background: var(--neutral-50);
    font-weight: 600;
    color: var(--neutral-900);
}

/* Article Footer */
.article-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
    border-top: 1px solid var(--neutral-200);
}

.share-section {
    text-align: center;
    margin-bottom: 60px;
}

.share-section h3 {
    font-size: 1.125rem;
    color: var(--neutral-700);
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--neutral-50);
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.related-posts h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 40px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.related-post-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.related-post-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary-100);
    color: var(--primary-600);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 12px;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.375;
    color: var(--neutral-900);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-500);
}

.related-post-meta {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* CTA Section */
.article-cta {
    padding: 60px 0;
    text-align: center;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(135deg, var(--primary-50) 0%, #FFFFFF 100%);
    border: 2px solid var(--primary-100);
    border-radius: 24px;
}

.cta-box h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    /* Article Header */
    .article-header {
        padding: 60px 0 40px;
    }

    .article-header-content {
        padding: 0 16px;
    }

    .article-category {
        font-size: 0.625rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .article-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
        font-size: 0.8125rem;
    }

    .article-author {
        gap: 8px;
    }

    .author-avatar {
        width: 32px;
        height: 32px;
    }

    /* Feature Image */
    .feature-image-container {
        margin: -20px auto 40px;
        padding: 0 16px;
    }

    .feature-image {
        border-radius: 12px;
    }

    /* Article Content */
    .article-content {
        padding: 0 16px 60px;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-body h1 { font-size: 1.875rem; }
    .article-body h2 { font-size: 1.5rem; }
    .article-body h3 { font-size: 1.25rem; }
    .article-body h4 { font-size: 1.125rem; }
    .article-body h5 { font-size: 1rem; }
    .article-body h6 { font-size: 0.875rem; }

    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6 {
        margin-top: 2rem;
    }

    .article-body p {
        margin-bottom: 1.25rem;
    }

    .article-body blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
    }

    .article-body pre {
        margin: 1.5rem 0;
        padding: 1rem;
        font-size: 0.8125rem;
        border-radius: 6px;
    }

    .article-body ul,
    .article-body ol {
        padding-left: 1.25rem;
    }

    .article-body table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-body th,
    .article-body td {
        padding: 8px;
    }

    /* Article Footer */
    .article-footer {
        padding: 32px 16px;
    }

    .share-section {
        margin-bottom: 40px;
    }

    .share-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .share-buttons {
        gap: 8px;
    }

    .share-button {
        width: 44px;
        height: 44px;
    }

    /* Related Posts */
    .related-posts {
        padding: 40px 0;
    }

    .related-posts-container {
        padding: 0 16px;
    }

    .related-posts h2 {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-post-card {
        padding: 20px;
    }

    .related-post-tag {
        font-size: 0.625rem;
        padding: 3px 7px;
    }

    .related-post-title {
        font-size: 1rem;
    }

    /* CTA Section */
    .article-cta {
        padding: 40px 0;
    }

    .cta-box {
        padding: 32px 20px;
        border-radius: 16px;
        margin: 0 16px;
    }

    .cta-box h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 0.9375rem;
    }

    .article-body h1 { font-size: 1.625rem; }
    .article-body h2 { font-size: 1.375rem; }
    .article-body h3 { font-size: 1.125rem; }
}