/* Article Page Specific Styles */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Breadcrumb */
.breadcrumb {
    padding: 100px 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5a67d8;
}

/* Article Layout */
.article-main {
    padding: 40px 0 80px;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.toc-container h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.toc {
    margin-bottom: 2rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.toc a:hover {
    color: #667eea;
}

.toc a.active {
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

/* Social Sharing */
.social-sharing h4 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: transparent;
}

.share-btn.facebook {
    color: #1877f2;
    border: 1px solid #1877f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    color: #1da1f2;
    border: 1px solid #1da1f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.telegram {
    color: #0088cc;
    border: 1px solid #0088cc;
}

.share-btn.telegram:hover {
    background: #0088cc;
    color: white;
}

.share-btn.copy {
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.share-btn.copy:hover {
    background: #6b7280;
    color: white;
}

/* Article Content */
.article-content {
    max-width: 800px;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.meta-label {
    color: #6b7280;
    font-weight: 500;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Body */
.article-body {
    line-height: 1.8;
    color: #374151;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-body strong {
    font-weight: 600;
    color: #1f2937;
}

/* Special Content Boxes */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fefcfc 100%);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.tip-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fef7 100%);
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-box h4 {
    color: #059669;
    margin-bottom: 1rem;
}

.checklist {
    background: linear-gradient(135deg, #fefce8 0%, #fffef7 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.checklist h4 {
    color: #d97706;
    margin-bottom: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.cta-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

blockquote p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.article-navigation .nav-link {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.article-navigation .nav-link:hover {
    border-color: #667eea;
    color: #667eea;
}

.article-navigation .prev {
    text-align: left;
}

.article-navigation .next {
    text-align: right;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: #f8fafc;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #1f2937;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.related-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: #667eea;
}

.related-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar {
        position: static;
        order: 2;
    }
    
    .toc-container {
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .toc {
        display: none; /* Hide TOC on mobile, or make it collapsible */
    }
    
    .social-sharing {
        margin-top: 2rem;
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .article-content h1 {
        font-size: 2rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-layout {
        padding: 0 15px;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb .container {
        font-size: 0.8rem;
    }
    
    .info-box,
    .warning-box,
    .tip-box,
    .checklist,
    .cta-box {
        padding: 1rem;
    }
    
    blockquote {
        padding: 1rem;
    }
    
    .toc-container {
        padding: 1rem;
    }
    
    .share-buttons {
        gap: 0.25rem;
    }
    
    .share-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
} 