/* CS:GO стиль */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(135deg, #1a1e2b 0%, #2a2f3f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
}

/* Фон в стиле CS:GO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/black-thread-light.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Навигация */
.csgo-navbar {
    background: linear-gradient(180deg, #2d3e4f 0%, #1a2632 100%);
    border-bottom: 3px solid #f5a623;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.csgo-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #f5a623;
}

.csgo-navbar .navbar-brand .news-text {
    color: #f5a623;
}

.csgo-navbar .nav-link {
    color: #e0e0e0 !important;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 10px;
    padding: 10px 15px !important;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.csgo-navbar .nav-link:hover {
    color: #f5a623 !important;
    border: 1px solid #f5a623;
    background: rgba(245, 166, 35, 0.1);
}

/* Карточки новостей */
.news-card {
    background: rgba(42, 47, 63, 0.9);
    border: 2px solid #3a4050;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    border-color: #f5a623;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #f5a623;
}

.news-content {
    padding: 20px;
}

.news-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title:hover {
    color: #f5a623;
}

.news-meta {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a4050;
    padding-bottom: 10px;
}

.news-meta i {
    color: #f5a623;
    margin-right: 5px;
}

.news-description {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Кнопки в стиле CS:GO */
.csgo-btn {
    background: linear-gradient(180deg, #4a5a6b 0%, #2a3a4b 100%);
    color: #fff;
    border: 2px solid #6a7a8b;
    border-radius: 4px;
    padding: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    box-shadow: 0 4px 0 #1a2a3b;
    transition: all 0.1s;
    cursor: pointer;
}

.csgo-btn:hover {
    background: linear-gradient(180deg, #5a6a7b 0%, #3a4a5b 100%);
    border-color: #f5a623;
    color: #fff;
}

.csgo-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.csgo-btn-warning {
    background: linear-gradient(180deg, #f5a623 0%, #d48a1a 100%);
    border-color: #ffb84d;
    box-shadow: 0 4px 0 #8b5e0e;
}

/* Статистика */
.stats-box {
    background: rgba(26, 30, 43, 0.9);
    border: 2px solid #3a4050;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.stats-number {
    font-size: 36px;
    font-weight: 700;
    color: #f5a623;
    text-shadow: 2px 2px 0 #000;
}

.stats-label {
    color: #a0a0a0;
    text-transform: uppercase;
    font-size: 14px;
}

/* Пагинация */
.pagination .page-link {
    background: #2a2f3f;
    border: 1px solid #3a4050;
    color: #f5a623;
    margin: 0 5px;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background: #3a4050;
    border-color: #f5a623;
    color: #fff;
}

.pagination .active .page-link {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1e2b;
}

/* Футер */
.csgo-footer {
    background: linear-gradient(0deg, #1a2632 0%, #2d3e4f 100%);
    border-top: 3px solid #f5a623;
    padding: 20px 0;
    color: #a0a0a0;
}

/* Прогресс-бар парсинга */
.progress.csgo-progress {
    height: 30px;
    background: #2a2f3f;
    border: 2px solid #3a4050;
    border-radius: 4px;
}

.progress.csgo-progress .progress-bar {
    background: linear-gradient(90deg, #f5a623, #ffb84d);
    color: #1a1e2b;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    line-height: 26px;
}

/* Анимации */
@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.flash {
    animation: flash 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-title {
        font-size: 18px;
    }
    
    .stats-number {
        font-size: 24px;
    }
}

/* Карусель */
.news-carousel {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #3a4050;
    background: #1a1e2b;
}

.carousel-item {
    position: relative;
    height: 400px;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 30px;
}

.carousel-category {
    display: inline-block;
    background: #f5a623;
    color: #1a1e2b;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.carousel-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    display: block;
}

.carousel-title:hover {
    color: #f5a623;
}

.carousel-meta {
    color: #a0a0a0;
    font-size: 14px;
}

.carousel-meta i {
    color: #f5a623;
    margin-right: 5px;
}

/* Стили для slick карусели (альтернатива) */
.slick-carousel {
    margin-bottom: 40px;
}

.slick-slide {
    margin: 0 10px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #3a4050;
}

.slick-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slick-slide .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 20px;
}

.slick-prev:before, .slick-next:before {
    color: #f5a623;
    font-size: 24px;
}

/* Категории */
.category-badge {
    display: inline-block;
    background: #f5a623;
    color: #1a1e2b;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
    text-transform: uppercase;
}

.category-filter {
    background: #2a2f3f;
    border: 2px solid #3a4050;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.category-filter .btn {
    background: #1a1e2b;
    color: #fff;
    border: 1px solid #3a4050;
    margin: 5px;
    transition: all 0.3s;
}

.category-filter .btn:hover,
.category-filter .btn.active {
    background: #f5a623;
    color: #1a1e2b;
    border-color: #f5a623;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-image {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 20px;
    }
    
    .carousel-overlay {
        padding: 20px;
    }
}

/* Горизонтальная бегущая строка с курсами */
.currency-ticker {
    background: linear-gradient(90deg, #1a1e2b 0%, #2d3e4f 100%);
    border-bottom: 2px solid #f5a623;
    border-top: 1px solid #3a4050;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
    height: 36px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ticker-gradient-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(90deg, #1a1e2b 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.ticker-gradient-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(270deg, #1a1e2b 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.ticker-track {
    position: absolute;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    padding-right: 20px;
}

/* Стили для информера внутри строки */
.profinance-inline {
    display: inline-flex !important;
    align-items: center;
}

.profinance-inline table {
    display: inline-table !important;
    width: auto !important;
    background: transparent !important;
    margin: 0 !important;
}

.profinance-inline tr {
    display: inline-table !important;
}

.profinance-inline td {
    display: inline-block !important;
    padding: 0 15px !important;
    color: #f5a623 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    border-right: 1px solid rgba(245, 166, 35, 0.3) !important;
    line-height: 26px !important;
}

.profinance-inline td:last-child {
    border-right: none !important;
}

.profinance-inline a {
    color: #f5a623 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.profinance-inline a:hover {
    color: #fff !important;
}

/* Анимация бегущей строки */
@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Иконка валюты слева */
.currency-ticker::before {
    content: '💰';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #f5a623;
    font-size: 18px;
    z-index: 3;
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
    background: #1a1e2b;
    padding: 0 10px;
    border-radius: 4px;
    border-left: 2px solid #f5a623;
    line-height: 28px;
}

/* Метка "Курсы ЦБ" */
.currency-ticker::after {
    content: 'КУРСЫ ЦБ';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #f5a623;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    background: #1a1e2b;
    padding: 0 10px;
    border-right: 2px solid #f5a623;
    line-height: 28px;
    letter-spacing: 1px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .currency-ticker {
        height: 32px;
    }
    
    .profinance-inline td {
        padding: 0 8px !important;
        font-size: 12px !important;
    }
    
    .currency-ticker::before,
    .currency-ticker::after {
        display: none;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .currency-ticker::before {
        content: '💰';
        display: block;
        font-size: 14px;
        left: 5px;
    }
    
    .currency-ticker::after {
        content: 'ЦБ';
        display: block;
        font-size: 10px;
        right: 5px;
    }
}
/* Хлебные крошки для SEO */
.breadcrumb {
    background: rgba(42, 47, 63, 0.7);
    padding: 8px 15px;
    border-radius: 4px;
    border-left: 3px solid #f5a623;
}

.breadcrumb a {
    color: #f5a623;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #a0a0a0;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #f5a623;
}

/* Обновленный логотип */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #f5a623;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #1a1e2b;
}

.logo-sub {
    font-size: 10px;
    color: #a0a0a0;
    letter-spacing: 1px;
}
/* Принудительные стили для навигации */
.csgo-navbar {
    background: linear-gradient(180deg, #2d3e4f 0%, #1a2632 100%) !important;
    border-bottom: 3px solid #f5a623 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    padding: 10px 0;
}

.csgo-navbar .navbar-brand,
.csgo-navbar .navbar-nav .nav-link {
    color: #e0e0e0 !important;
}

.csgo-navbar .navbar-nav .nav-link:hover {
    color: #f5a623 !important;
}

/* Принудительные стили для футера */
.csgo-footer {
    background: linear-gradient(0deg, #1a2632 0%, #2d3e4f 100%) !important;
    border-top: 3px solid #f5a623 !important;
    padding: 20px 0 !important;
    color: #a0a0a0 !important;
}
/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПАРСЕРА ===== */

/* Основной контейнер */
.parser-wrapper {
    animation: fadeIn 0.5s ease-out;
}

/* Карточка парсера */
.parser-card {
    background: linear-gradient(145deg, #2a2f3f 0%, #1e232f 100%);
    border: 2px solid #3a4050;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 166, 35, 0.1) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.parser-card:hover {
    border-color: #f5a623;
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.15), 0 0 0 1px rgba(245, 166, 35, 0.2) inset;
    transform: translateY(-2px);
}

/* Эффект свечения сверху */
.parser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5a623, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Информационное окно - улучшенная версия */
.parser-info {
    background: linear-gradient(135deg, #1e232f 0%, #2a2f3f 100%);
    border: 2px solid #f5a623;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.2);
}

.parser-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.info-icon {
    font-size: 24px;
    color: #f5a623;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5));
}

.info-title {
    color: #f5a623;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a4050;
    padding-bottom: 10px;
}

.info-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    color: #a0a0a0;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-value {
    color: #f5a623;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

/* Заголовок парсера */
.parser-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 0 #1a1e2b, 4px 4px 0 rgba(245, 166, 35, 0.2);
}

.parser-title i {
    color: #f5a623;
    font-size: 32px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Форма парсера */
.parser-form {
    background: rgba(26, 30, 43, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #3a4050;
}

.form-label {
    color: #f5a623;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.parser-select {
    background: #1a1e2b !important;
    color: #fff !important;
    border: 2px solid #3a4050 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
}

.parser-select:hover {
    border-color: #f5a623 !important;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.2);
}

.parser-select:focus {
    border-color: #f5a623 !important;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
    outline: none;
}

.form-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Кнопка запуска */
.parser-button {
    background: linear-gradient(180deg, #f5a623 0%, #d48a1a 100%);
    border: 2px solid #ffb84d;
    border-radius: 8px;
    padding: 12px 30px;
    color: #1a1e2b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 6px 0 #8b5e0e, 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.parser-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.parser-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #8b5e0e, 0 15px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #ffb84d 0%, #f5a623 100%);
}

.parser-button:hover::before {
    left: 100%;
}

.parser-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #8b5e0e, 0 5px 15px rgba(0, 0, 0, 0.3);
}

.parser-button:disabled {
    opacity: 0.6;
    transform: translateY(4px);
    box-shadow: 0 2px 0 #8b5e0e;
    cursor: not-allowed;
}

/* Прогресс-бар */
.parser-progress {
    background: #1a1e2b;
    border: 2px solid #3a4050;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.progress-title {
    color: #f5a623;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-title i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress {
    height: 30px;
    background: #1a1e2b;
    border: 2px solid #3a4050;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    background: linear-gradient(90deg, #f5a623, #ffb84d, #f5a623);
    background-size: 200% 100%;
    animation: gradientMove 1s linear infinite;
    color: #1a1e2b;
    font-weight: 700;
    font-size: 14px;
    line-height: 26px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Лог парсинга */
.parser-log {
    background: #1a1e2b;
    border: 2px solid #3a4050;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.log-entry {
    padding: 5px 10px;
    border-bottom: 1px solid #2a2f3f;
    margin-bottom: 5px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-time {
    color: #f5a623;
    font-weight: 600;
    margin-right: 10px;
}

.log-info { color: #f5a623; }
.log-success { color: #4caf50; }
.log-warning { color: #ffc107; }
.log-danger { color: #f44336; }

/* Результат */
.parser-result {
    margin-top: 20px;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-message {
    background: linear-gradient(135deg, #1a2a1a, #2a3a2a);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

.result-message i {
    color: #4caf50;
    font-size: 24px;
    margin-right: 10px;
}

/* Список последних новостей */
.recent-news {
    background: linear-gradient(145deg, #2a2f3f 0%, #1e232f 100%);
    border: 2px solid #3a4050;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.recent-title {
    color: #f5a623;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #3a4050;
    padding-bottom: 10px;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    background: #1a1e2b;
    border: 1px solid #3a4050;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.recent-item:hover {
    border-color: #f5a623;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.2);
}

.recent-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
}

.recent-link:hover {
    color: #f5a623;
}

.recent-date {
    color: #a0a0a0;
    font-size: 12px;
    background: #2a2f3f;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0a0a0;
}

.empty-state i {
    font-size: 48px;
    color: #f5a623;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .parser-title {
        font-size: 22px;
    }
    
    .info-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .recent-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .recent-date {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .parser-card {
        padding: 15px;
    }
    
    .parser-button {
        font-size: 16px;
        padding: 10px;
    }
    
    .progress {
        height: 25px;
    }
    
    .progress-bar {
        line-height: 21px;
        font-size: 12px;
    }
}

/* ===== НОВАЯ АДАПТИВНАЯ ПАГИНАЦИЯ ===== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    background: #2a2f3f;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #3a4050;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #1a1e2b;
    border: 1px solid #3a4050;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-number:hover {
    background: #3a4050;
    border-color: #f5a623;
    color: #f5a623;
}

.page-number.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1e2b;
    font-weight: 600;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 36px;
    color: #e0e0e0;
    font-size: 14px;
}

.pagination-prev,
.pagination-next,
.pagination-first,
.pagination-last {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a1e2b;
    border: 1px solid #3a4050;
    border-radius: 4px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-first:hover,
.pagination-last:hover {
    background: #3a4050;
    border-color: #f5a623;
    color: #f5a623;
}

.pagination-info {
    color: #e0e0e0;
    font-size: 14px;
    background: #2a2f3f;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #3a4050;
    white-space: nowrap;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 10px;
    }
    
    .pagination {
        width: 100%;
        justify-content: center;
        padding: 6px 10px;
    }
    
    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 6px;
    }
    
    .pagination-prev,
    .pagination-next,
    .pagination-first,
    .pagination-last {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .page-dots {
        min-width: 25px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
        padding: 5px 8px;
    }
    
    .page-number {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 4px;
    }
    
    .pagination-prev,
    .pagination-next,
    .pagination-first,
    .pagination-last {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .page-dots {
        min-width: 20px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Показываем меньше страниц на очень маленьких экранах */
    .page-number:nth-child(n+4):nth-last-child(n+4) {
        display: none;
    }
}

/* Для экранов меньше 360px */
@media (max-width: 360px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-pages {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .pagination-first,
    .pagination-last {
        display: none; /* Прячем кнопки "в начало" и "в конец" */
    }
}

/* Реакции на главной */
.news-reactions-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 10px;
    padding: 8px 0;
    border-top: 1px solid #3a4050;
    border-bottom: 1px solid #3a4050;
}

.reactions-mini {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reaction-mini-item {
    background: #1a1e2b;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
    color: #e0e0e0;
    border: 1px solid #3a4050;
}

.reaction-more {
    background: #1a1e2b;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
    color: #f5a623;
    border: 1px solid #f5a623;
}

.reactions-link {
    color: #f5a623;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.reactions-link:hover {
    color: #ffb347;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-reactions-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reactions-mini {
        flex-wrap: wrap;
    }
}

.news-description-limited {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin: 10px 0;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    min-height: 4.5em; /* 3 строки */
}

/* Для мобильных */
@media (max-width: 768px) {
    .news-description-limited {
        -webkit-line-clamp: 2;
        min-height: 3em;
        font-size: 13px;
    }
}

/* ===== РЕГИОН И ВРЕМЯ ===== */
.region-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1e2b;
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #3a4050;
    margin-right: 15px;
    font-size: 14px;
}

.region-flag {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(245,166,35,0.3));
}

.region-name {
    color: #f5a623;
    font-weight: 500;
}



@media (max-width: 768px) {
    .region-info {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }
}


.region-time.updating {
    transform: scale(1.1);
    color: #f5a623;
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
}
.region-time {
    min-width: 70px;
    text-align: center;
    background: #2a2f3f;
    padding: 2px 8px;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.1s;
    display: inline-block;
}

.region-time.time-tick {
    transform: scale(1.05);
    color: #f5a623;
    text-shadow: 0 0 5px rgba(245, 166, 35, 0.5);
}
