/* ==========================================
   SINGLE POST STYLES - Дополнительные стили
   ========================================== */

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.author-name a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.author-name a:hover {
    color: var(--primary-color);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--gray-50);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.tag {
    background: var(--gray-100);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.share-btn.vk {
    background: #4680C2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy {
    background: var(--gray-600);
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-search .search-form {
    margin-bottom: 0;
}

.recent-posts,
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item,
.related-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post-item:last-child,
.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item h4,
.related-post-item h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-post-item h4 a,
.related-post-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-item h4 a:hover,
.related-post-item h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.archive-list,
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li,
.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.archive-list li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.archive-list a,
.category-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-list a:hover,
.category-list a:hover {
    color: var(--primary-color);
}

/* Table of Contents */
.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents .toc-h3 a {
    padding-left: 1rem;
    font-size: 0.85rem;
}

.table-of-contents .toc-h4 a {
    padding-left: 2rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-content-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .single-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-sidebar {
        order: -1;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-stats {
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}