/* ==========================================================================
   Components CSS - Переиспользуемые компоненты
   ========================================================================== */

/* Вкладки */
.news-tabs {
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.tab-item {
    margin-right: 5px;
}

.tab-link {
    display: inline-block;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.tab-link:hover {
    border-color: transparent;
    color: #007bff;
}

.tab-link.active {
    border-color: #007bff;
    color: #007bff;
    background: none;
}

/* Список новостей */
.news-list {
    margin-top: 20px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.news-item:hover {
    background: #f8f9fa;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.news-item.important {
    border-left: 4px solid #dc3545;
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.05), transparent);
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
}

.news-title a:hover {
    color: #007bff;
}

.news-summary {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.news-source {
    font-weight: 600;
    color: #495057;
}

.news-time {
    color: #6c757d;
}

.news-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.tag-coin {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-category {
    background: #fff3cd;
    color: #856404;
}

/* Пагинация */
.pagination-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 8px 12px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Сообщение "нет новостей" */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .tab-link {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .tabs-list {
        flex-wrap: wrap;
    }
    
    .news-title {
        font-size: 18px;
    }
}

