/* Article Page Specific Styles */

/* Article Hero */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.article-hero .breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-hero .breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.article-hero .breadcrumb a:hover {
    opacity: 0.8;
}

.article-hero .breadcrumb span {
    opacity: 0.7;
}

.article-hero .article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-hero .article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: #f8fafc;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.article-main {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Article Text Styles */
.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
}

.article-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
}

.article-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 1rem 0;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text strong {
    font-weight: 600;
    color: #1f2937;
}

/* Info Boxes */
.info-box,
.warning-box,
.cta-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.info-box {
    background: #f0f9ff;
    border-color: #2563eb;
}

.info-box h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.warning-box {
    background: #fef3c7;
    border-color: #f59e0b;
}

.warning-box h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #2563eb;
    color: white;
    text-align: center;
}

.cta-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-box .cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-box .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-box .cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-box .cta-button.secondary:hover {
    background: white;
    color: #2563eb;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

.article-share h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.vk {
    background: #4c75a3;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.related-articles h3 {
    margin-bottom: 2rem;
    color: #1e293b;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.related-card h4 a:hover {
    color: #2563eb;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Table of Contents */
.toc-widget {
    position: sticky;
    top: 100px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s;
}

.toc-list a:hover,
.toc-list a.active {
    color: #2563eb;
    border-left-color: #2563eb;
    background: #f8fafc;
}

/* Author Widget */
.author-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.author-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.author-details p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .toc-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 100px 0 40px;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        padding: 60px 0;
    }
    
    .article-main {
        padding: 2rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .article-text .lead {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-text h3 {
        font-size: 1.3rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .article-layout {
        gap: 1rem;
    }
    
    .article-main {
        padding: 1.5rem;
    }
    
    .article-hero h1 {
        font-size: 1.5rem;
    }
    
    .article-text .lead {
        font-size: 1rem;
    }
    
    .info-box,
    .warning-box,
    .cta-box {
        padding: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        align-self: center;
    }
}