/* Article Page Specific Styles */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.table-of-contents h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #3498db;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.article-section:last-child {
    border-bottom: none;
}

.article-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.article-section h3 {
    color: #34495e;
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
}

.article-section h4 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

/* Lists */
.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.highlight-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.highlight-box p {
    color: rgba(255,255,255,0.9);
}

/* Info Boxes */
.info-box {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Related Articles */
.related-articles {
    background: #f8f9fa;
    padding: 3rem 2rem;
    margin: 4rem 0 2rem 0;
    border-radius: 12px;
}

.related-articles h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.related-card a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.related-card a:hover {
    text-decoration: underline;
}

/* Article Tags */
.article-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.article-tags h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 2rem 0;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        padding: 0 1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}