/* Individual Article Page Styles */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 80px;
    color: white;
}

.article-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.article-breadcrumb span {
    margin: 0 8px;
    opacity: 0.6;
}

.article .article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
}

.article .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.article .article-category {
    color: var(--primary-orange);
    font-weight: 600;
}

.article-date,
.article .article-read-time {
    color: rgba(255, 255, 255, 0.7);
}

.article .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article .tag {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: white;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
}

.article-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 48px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 48px 0 24px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 40px 0 20px;
    line-height: 1.4;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 32px 0 16px;
    line-height: 1.4;
}

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

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

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

.article-body strong {
    font-weight: 600;
    color: #1f2937;
}

.article-body em {
    font-style: italic;
    color: #6b7280;
}

.article-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 48px 0;
}

/* Blockquotes */
.article-body blockquote {
    border-left: 4px solid var(--primary-orange);
    padding: 24px 32px;
    margin: 32px 0;
    background: #fef7f0;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #1f2937;
    margin-bottom: 16px;
}

.article-body blockquote cite {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
    font-weight: 500;
}

.article-body blockquote cite::before {
    content: '— ';
}

/* Code Examples */
.code-example {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #2d3748;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.code-title {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
}

.code-language {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.code-example pre {
    margin: 0;
    padding: 24px 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
    background: transparent;
}

.code-example code {
    font-family: inherit;
    background: transparent;
    color: inherit;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-item h4 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    color: #1a1a2e;
}

.feature-item p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Info Boxes */
.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.info-box h4 {
    color: #0369a1;
    margin: 0 0 12px;
    font-size: 1.125rem;
}

.info-box p {
    margin: 0;
    color: #075985;
    line-height: 1.6;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    flex-wrap: wrap;
}

.arch-step {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.arch-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.arch-step h4 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    color: #1a1a2e;
}

.arch-step p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: bold;
    flex-shrink: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b35 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.cta-box h3 {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.cta-box p {
    margin: 0 0 24px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.cta-box .btn {
    background: white;
    color: var(--primary-orange);
    border: none;
    font-weight: 600;
}

.cta-box .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Article Footer */
.article-footer {
    background: #f8fafc;
    padding: 48px 0;
    border-top: 1px solid #e2e8f0;
}

.article-navigation {
    margin-bottom: 32px;
}

.nav-link.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link.back:hover {
    gap: 12px;
    color: #e55a00;
}

.article-share h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #374151;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn.copy:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 48px;
}

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

.related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.related-card.coming-soon {
    opacity: 0.7;
}

.related-image {
    height: 180px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-content {
    padding: 24px;
}

.related-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.4;
}

.related-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}

.coming-soon-label {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 60px;
    }
    
    .article .article-title {
        font-size: 2.5rem;
    }
    
    .article .article-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .meta-left {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .article-content {
        padding: 60px 0;
    }
    
    .article-body {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .article-body h2 {
        font-size: 1.75rem;
        margin: 40px 0 20px;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
        margin: 32px 0 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        flex-direction: column;
        gap: 24px;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .cta-box {
        padding: 32px 20px;
    }
    
    .article-footer {
        padding: 40px 0;
    }
    
    .related-articles {
        padding: 60px 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .share-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .article .article-title {
        font-size: 2rem;
    }
    
    .article-body {
        padding: 0 16px;
    }
    
    .code-example pre {
        font-size: 0.75rem;
        padding: 20px 16px;
    }
    
    .cta-box {
        padding: 24px 16px;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
}