/* Modern Article UI Styles */

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.article-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: white;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content Layout */
.article-content {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-main {
    min-width: 0;
}

/* Article Body Styling */
.article-body {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 12px;
    border-left: 4px solid #dc2626;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: white;
}

/* Section Headings */
.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dc2626;
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1.5rem 0 0.75rem;
}

/* Info Boxes */
.info-box, .warning-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.info-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
}

.info-box h4, .warning-box h4 {
    margin: 0 0 1rem;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h4 i {
    color: #3b82f6;
}

.warning-box h4 i {
    color: #f59e0b;
}

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

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-box h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

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

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Tables */
.comparison-table {
    width: 100%;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:nth-child(even) {
    background: #f9fafb;
}

.comparison-table tr:hover {
    background: #f3f4f6;
}

/* FAQ Section */
.faq-section h4 {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0 0.5rem;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-section h4:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.faq-section p {
    margin: 0 0 1rem;
    padding: 0 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.article-cta h2 {
    margin: 0 0 1rem;
    color: white;
    border: none;
}

.article-cta h2::before {
    display: none;
}

.article-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* Article Navigation */
.article-nav {
    display: flex;
    gap: 1rem;
    margin: 3rem 0 0;
}

.nav-prev, .nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-prev i, .nav-next i {
    color: #dc2626;
    font-size: 1.2rem;
}

.nav-prev span, .nav-next span {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-prev strong, .nav-next strong {
    font-weight: 600;
    color: #1f2937;
}

/* Sidebar */
.article-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.related-articles, .quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-articles li, .quick-links li {
    margin-bottom: 0.75rem;
}

.related-articles a, .quick-links a {
    display: block;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.related-articles a:hover, .quick-links a:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.related-articles h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.related-articles p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-header {
        padding: 2rem 0 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-body {
        padding: 1rem;
    }
    
    .lead {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .info-box, .warning-box {
        padding: 1rem;
    }
    
    .article-cta {
        padding: 1.5rem;
    }
}
