/* Дополнительные стили для страниц статей */

/* Анимации для карточек */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Стили для изображений статей */
.article-image {
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.02);
}

/* Стили для тегов */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.article-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.article-tag:hover {
    background: #e3f2fd;
    color: #1976d2;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Стили для кнопок действий */
.article-actions .btn {
    transition: all 0.2s ease;
}

.article-actions .btn:hover {
    transform: translateY(-1px);
}

/* Стили для комментариев */
.comment-item {
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Стили для пагинации */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.pagination .page-item.active .page-link {
    background: #1976d2;
    border-color: #1976d2;
}

/* Стили для поиска */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Стили для мобильного меню */
@media (max-width: 768px) {
    .sidebar-left {
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-toggle {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #f8f9fa;
        transform: scale(1.05);
    }
}

/* Стили для загрузки */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Стили для уведомлений */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* Стили для прогресс-бара чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 9998;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    transition: width 0.1s ease;
}

/* Стили для темной темы (опционально) */
@media (prefers-color-scheme: dark) {
    .articles-layout {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .sidebar-left,
    .main-content,
    .sidebar-right {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .article-card {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .article-card:hover {
        border-color: #606060;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
    
    .article-title {
        color: #ffffff;
    }
    
    .article-excerpt {
        color: #cccccc;
    }
    
    .article-meta {
        color: #aaaaaa;
    }
}

/* Стили для печати */
@media print {
    .sidebar-left,
    .sidebar-right,
    .mobile-menu-toggle,
    .article-actions,
    .comments-section {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        max-width: none !important;
    }
    
    .article-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
    
    .article-image {
        max-width: 100%;
        height: auto;
    }
}






