/* Article Page Specific Styles */

.article-main {
    padding-top: 100px;
    min-height: 100vh;
    background: #ffffff;
}

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

.article-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
}

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

.article-breadcrumb a:hover {
    text-decoration: underline;
}

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

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 32px;
    max-width: 800px;
}

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

.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2563eb;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-stats {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    color: #6b7280;
}

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

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

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

.article-text {
    line-height: 1.8;
    font-size: 1.125rem;
    color: #374151;
}

.article-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 32px;
    padding: 24px;
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
}

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

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 36px 0 18px 0;
}

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

.article-quote {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #92400e;
}

.article-list {
    margin: 24px 0;
    padding-left: 24px;
}

.article-list li {
    margin-bottom: 12px;
    color: #374151;
}

.article-highlight {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 1px solid #81d4fa;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.article-highlight h3 {
    color: #0277bd;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.article-highlight p {
    color: #01579b;
    margin-bottom: 0;
}

.author-opinion {
    background: #f3e8ff;
    border: 1px solid #c084fc;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.author-opinion h3 {
    color: #7c3aed;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.author-opinion p {
    color: #581c87;
    margin-bottom: 0;
    font-style: italic;
}

/* Article Tags */
.article-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

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

/* Social Share */
.article-share {
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.article-share h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

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

.share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
}

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

.share-btn.facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

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

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

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    background: #f9fafb;
    padding: 60px 0;
    margin-top: 60px;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.related-category {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.related-article-title {
    margin-bottom: 12px;
}

.related-article-title a {
    text-decoration: none;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.related-excerpt {
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.25rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-intro {
        font-size: 1.125rem;
        padding: 20px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 40px 0;
    }
    
    .article-title {
        font-size: 1.875rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-highlight,
    .author-opinion {
        padding: 20px;
    }
    
    .related-card {
        padding: 24px 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .article-share,
    .related-articles {
        display: none !important;
    }
    
    .article-main {
        padding-top: 0;
    }
    
    .article-header {
        background: none;
        padding: 20px 0;
    }
    
    .article-title {
        color: #000000;
        font-size: 24pt;
    }
    
    .article-text {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .article-text h2 {
        font-size: 18pt;
        page-break-after: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .related-card,
    .share-btn,
    .tag {
        transition: none;
    }
    
    .related-card:hover,
    .share-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .article-intro {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .article-highlight {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .author-opinion {
        background: #ffffff;
        border: 2px solid #000000;
    }
}