/* Article Page Styles */

/* Article Header */
.article-header {
    padding: 8rem 0 4rem;
    margin-top: 80px;
    background: var(--primary-bg);
}

.article-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--text-primary);
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-category-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.article-category-badge.technical {
    background: rgba(139, 92, 246, 0.15);
    color: #a855f7;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.article-category-badge.community {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.article-category-badge.retail {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.article-category-badge.partners {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-date-header {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
}

/* Article Content */
.article-content {
    padding: 4rem 0;
    background: var(--primary-bg);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-image-hero {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.article-text {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.125rem;
}

.article-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-text ul,
.article-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.article-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-text blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent-primary);
    background: rgba(79, 70, 229, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-text code {
    background: var(--card-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.article-text pre {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.article-text pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.related-category {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.related-category.technical {
    background: rgba(139, 92, 246, 0.15);
    color: #a855f7;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.related-category.community {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.related-category.retail {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.related-category.partners {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.related-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.related-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 6rem 0 3rem;
    }
    
    .article-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .article-subtitle {
        font-size: 1.125rem;
    }
    
    .article-hero-image {
        height: 250px;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 2rem 0;
    }
    
    .article-text {
        font-size: 0.95rem;
    }
    
    .article-intro {
        font-size: 1.125rem;
    }
    
    .article-hero-image {
        height: 200px;
    }
}