/* Article-specific styles */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    width: 0%;
    transition: width 0.3s ease;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 60px;
    border-bottom: 1px solid #e2e8f0;
}

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

.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
}

.article-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #94a3b8;
}

.article-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    line-height: 1.2;
}

.article-header__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date,
.article-read-time,
.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    color: #64748b;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

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

.article-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.table-of-contents {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

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

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-link:hover,
.toc-link.active {
    color: #2563eb;
    border-left-color: #2563eb;
}

.article-cta {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.article-cta h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-cta p {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Main Article Content */
.article-content {
    max-width: 800px;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-featured-image figcaption {
    padding: 16px 20px;
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 30px;
    font-weight: 400;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 50px 0 20px;
    line-height: 1.3;
    scroll-margin-top: 120px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 40px 0 16px;
    line-height: 1.4;
    scroll-margin-top: 120px;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 12px;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 8px;
}

.feature-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    border-left: 4px solid #2563eb;
}

.feature-list li {
    margin-bottom: 12px;
}

.feature-list strong {
    color: #2563eb;
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    position: relative;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-box p {
    color: #1e40af;
    margin: 0;
    font-size: 1rem;
}

/* Video Container */
.video-container {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    border-radius: 12px;
}

.video-container figcaption {
    padding: 16px 20px;
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.advantage-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Statistics Highlight */
.stat-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Process Timeline */
.process-timeline {
    margin: 40px 0;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 60px;
    width: 2px;
    height: 40px;
    background: #e2e8f0;
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-content p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* Technical Specifications */
.technical-specs {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.technical-specs h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spec-label {
    font-weight: 500;
    color: #374151;
}

.spec-value {
    font-weight: 600;
    color: #2563eb;
}

/* Comparison Table */
.comparison-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.comparison-table th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

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

.positive {
    color: #059669;
    font-weight: 600;
}

.negative {
    color: #dc2626;
    font-weight: 600;
}

.advantage {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.comparison-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.comparison-summary h4 {
    color: #0c4a6e;
    margin-bottom: 12px;
}

.comparison-summary ul {
    margin: 0;
    padding-left: 20px;
}

.comparison-summary li {
    color: #0c4a6e;
    margin-bottom: 8px;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.application-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.application-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-content {
    padding: 24px;
}

.application-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.application-content p {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 14px;
}

.application-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

.application-features li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 50%;
    font-size: 10px;
}

/* Case Study */
.case-study {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.case-study h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 22px;
}

.case-study-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.case-study-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-study-details h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 16px;
}

.case-study-details p {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 14px;
}

.case-study-details ul {
    margin-bottom: 20px;
}

.case-study-details li {
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.result-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.result-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Trends Timeline */
.trends-timeline {
    margin: 40px 0;
}

.trend-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.trend-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 80px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #2563eb, transparent);
}

.trend-year {
    width: 100px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.trend-content h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 18px;
}

.trend-content p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* Innovation Spotlight */
.innovation-spotlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.innovation-spotlight h3 {
    color: #92400e;
    margin-bottom: 12px;
    font-size: 18px;
}

.innovation-spotlight p {
    color: #92400e;
    margin: 0;
    font-size: 14px;
}

/* Conclusion Highlights */
.conclusion-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.highlight-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.highlight-item i {
    font-size: 32px;
    color: #2563eb;
    margin-bottom: 16px;
}

.highlight-item h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 16px;
}

.highlight-item p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 24px;
}

.cta-section p {
    color: #cbd5e1;
    margin-bottom: 24px;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 18px;
}

.author-info p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 14px;
}

.author-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.author-links a:hover {
    text-decoration: underline;
}

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

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-article__image {
    position: relative;
}

.related-article__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.related-article__content {
    padding: 20px;
}

.related-article__title {
    margin-bottom: 8px;
}

.related-article__title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-article__title a:hover {
    color: #2563eb;
}

.related-article__date {
    color: #64748b;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .table-of-contents {
        display: none;
    }
    
    .case-study-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-header__title {
        font-size: 2rem;
    }
    
    .article-header__meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .article-meta {
        justify-content: center;
    }
    
    .advantages-grid,
    .applications-grid,
    .conclusion-highlights {
        grid-template-columns: 1fr;
    }
    
    .stat-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-table-wrapper {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .article-header__title {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .stat-highlight {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-step::after {
        display: none;
    }
    
    .trend-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trend-item::after {
        display: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card--hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .header,
    .article-sidebar,
    .related-articles,
    .footer,
    .reading-progress {
        display: none;
    }
    
    .article-content-wrapper {
        padding: 0;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        max-width: none;
    }
}