/* =========================================================================
   ФАЙЛ: СТИЛИ СТРАНИЦЫ ЗАПИСИ (ЧАСТЬ 1: УЛЬТРА-КОНТРАСТНЫЕ КАТЕГОРИИ)
   ========================================================================= */

/* Жесткий импорт дизайна хлебных крошек */
.cs-single-post-page .cs-premium-breadcrumbs-wrap { 
    width: 100% !important; 
    margin: 0 0 30px 0 !important; 
}
.cs-single-post-page .cs-pbc-inner { 
    display: flex !important; 
    align-items: center !important; 
    flex-wrap: nowrap !important; 
    overflow-x: auto !important; 
    gap: 8px !important; 
    scrollbar-width: none !important; 
}
.cs-single-post-page .cs-pbc-inner::-webkit-scrollbar { display: none !important; }
.cs-single-post-page .cs-pbc-item { 
    background: #ffffff !important; 
    border: 2px solid #e2e8f0 !important; 
    border-radius: 10px !important; 
    padding: 8px 16px !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    color: #1e293b !important; 
    text-decoration: none !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    white-space: nowrap !important;
}
.cs-single-post-page a.cs-pbc-item:hover { 
    border-color: #e67e22 !important; 
    color: #e67e22 !important; 
}

/* КАТЕГОРИИ: ДЕЛАЕМ ИХ МАКСИМАЛЬНО ЗАМЕТНЫМИ КНОПКАМИ */
.csc-nav-toggle-container { 
    width: 100% !important; 
    margin-bottom: 35px !important; 
}
.csc-nav-toggle__button { display: none !important; } 
.csc-nav-toggle__hidden { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 12px !important; 
    width: 100% !important; 
}
.csc-nav-toggle__hidden .csc-top-new__btn { 
    background: #ffffff !important; 
    border: 2px solid #cbd5e1 !important; /* Толстая заметная рамка */
    border-radius: 12px !important; 
    padding: 12px 26px !important; 
    font-size: 14px !important; 
    font-weight: 800 !important; /* Ультра-жирный шрифт */
    color: #0f172a !important; 
    text-decoration: none !important; 
    transition: all 0.2s ease-in-out !important; 
}

/* Мощный неоновый ховер */
.csc-nav-toggle__hidden .csc-top-new__btn:hover, 
.csc-nav-toggle__hidden .csc-top-new__btn.active { 
    background: #e67e22 !important; 
    border-color: #e67e22 !important; 
    color: #ffffff !important; 
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3) !important;
    transform: translateY(-2px) !important;
}
.cs-no-cats-msg { font-size: 14px; font-style: italic; color: #64748b; }

/* =========================================================================
   ФАЙЛ: СТИЛИ СТРАНИЦЫ ЗАПИСИ (ЧАСТЬ 2: МОЩНЫЙ КОНТЕНТ И КИБЕР-СОДЕРЖАНИЕ)
   ========================================================================= */

/* Двухколоночный макет дешборда статьи */
.cs-single-post-page .cs-post-layout-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 350px !important; 
    gap: 40px !important; 
    align-items: start !important; 
}

/* Монолитная карточка всей статьи */
.cs-classic-block-post-card { 
    background: #ffffff !important; 
    border: 2px solid #e2e8f0 !important; /* Усилили видимость границ карточки */
    border-radius: 24px !important; 
    padding: 50px !important; 
    box-shadow: 0 15px 50px rgba(15, 23, 42, 0.04) !important; 
}

/* Верхняя строка: Категория и Дата */
.cs-post-meta-top { 
    display: flex !important; 
    align-items: center !important; 
    gap: 15px !important; 
    margin-bottom: 25px !important; 
    font-size: 12px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase; 
    letter-spacing: 0.8px !important;
}
.cs-post-meta-top .cs-pm-category a { 
    color: #e67e22 !important; 
    text-decoration: none !important; 
    background: rgba(230,126,34,0.1) !important; 
    padding: 5px 14px !important; 
    border-radius: 8px !important; 
}
.cs-post-meta-top .cs-pm-date { 
    color: #475569 !important; 
    font-weight: 700 !important;
}

/* Крупный, доминирующий заголовок статьи H1 */
.cs-post-main-title { 
    font-size: 42px !important; 
    font-weight: 900 !important; /* Максимальная жирность */
    color: #0f172a !important; 
    line-height: 1.25 !important; 
    margin: 0 0 35px 0 !important; 
    letter-spacing: -0.8px !important;
}

/* Главная большая обложка */
.cs-post-featured-image-wrap { 
    width: 100% !important; 
    max-height: 500px !important; 
    border-radius: 16px !important; 
    overflow: hidden !important; 
    margin-bottom: 45px !important; 
    border: 2px solid #e2e8f0 !important; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}
.cs-post-featured-image-wrap .cs-post-main-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* =========================================================================
   НОВЫЙ ИНТЕРФЕЙСНЫЙ ВИДЖЕТ АВТО-СОДЕРЖАНИЯ (HLTV СТИЛЬ)
   ========================================================================= */
.cs-premium-toc-block {
    background: #f8fafc !important; /* Плотный серый фон, выделяющий блок */
    border: 2px solid #cbd5e1 !important; /* Четкая контрастная обводка */
    border-radius: 16px !important; 
    padding: 30px !important; 
    margin: 40px 0 !important; 
    box-sizing: border-box !important;
}
.cs-toc-head {
    font-size: 16px !important; 
    font-weight: 900 !important; 
    color: #0f172a !important; 
    text-transform: uppercase !important; 
    margin-bottom: 22px !important; 
    letter-spacing: 1px !important; 
    border-bottom: 3px solid #e2e8f0 !important; 
    padding-bottom: 12px !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 10px !important;
}
.cs-toc-list {
    margin: 0 !important; 
    padding: 0 !important; 
    list-style: none !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 14px !important;
}
.cs-toc-list li {
    position: relative !important; 
    padding-left: 25px !important; 
    display: block !important;
}

/* Оранжевые хай-тек полоски слева от пунктов */
.cs-toc-list li::before {
    content: "" !important; 
    position: absolute !important; 
    left: 0; 
    top: 10px;
    width: 8px; 
    height: 3px;
    background: #94a3b8 !important; 
    border-radius: 4px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cs-toc-list li:hover::before {
    width: 16px !important; /* Полоска сочно удлиняется при наведении на текст */
    background: #e67e22 !important;
}
.cs-toc-list a {
    color: #334155 !important; 
    text-decoration: none !important; 
    font-size: 15px !important; 
    font-weight: 700 !important; /* Ссылки стали толще и заметнее */
    transition: color 0.2s ease !important;
}
/* =========================================================================
   ФАЙЛ: СТИЛИ СТРАНИЦЫ ЗАПИСИ (ЧАСТЬ 3: ТЕКСТ СТАТЬИ, САЙДБАР И АДАПТИВ)
   ========================================================================= */

/* Активация сочной оранжевой подсветки ссылок в содержании */
.cs-toc-list li:hover a {
    color: #e67e22 !important;
}

/* Главная текстовая зона статьи (Синхронизация по эталону) */
.cs-post-body-text-content { 
    font-size: 16px !important; 
    line-height: 1.85 !important; 
    color: #1e293b !important; /* Плотный, контрастный и легко читаемый цвет */
}
.cs-post-body-text-content p { margin-bottom: 24px !important; }

/* Кастомные заголовки H2 внутри текста с фирменной оранжевой неоновой линией */
.cs-post-body-text-content h2 { 
    font-size: 26px !important; 
    font-weight: 800 !important; 
    color: #0f172a !important; 
    border-bottom: 3px solid #f1f5f9 !important; 
    padding-bottom: 12px !important; 
    margin: 45px 0 22px 0 !important; 
    position: relative !important; 
}
.cs-post-body-text-content h2::after { 
    content: "" !important; 
    position: absolute !important; 
    bottom: -3px; 
    left: 0; 
    width: 70px; 
    height: 3px; 
    background: #e67e22; /* Оранжевый маркер под заголовком */
}

/* Скругленные премиальные картинки внутри текста */
.cs-post-body-text-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    margin: 35px 0 !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

/* Элегантные списки */
.cs-post-body-text-content ul, 
.cs-post-body-text-content ol { 
    margin-bottom: 25px !important; 
    padding-left: 24px !important; 
}
.cs-post-body-text-content li { margin-bottom: 12px !important; }

/* =========================================================================
   ИГРОВОЙ ПРЕМИУМ-САЙДБАР ЧИТАЙТЕ ТАКЖЕ
   ========================================================================= */
.cs-sidebar-sticky-widget { 
    position: sticky !important; 
    top: 30px !important; /* Сайдбар плавно залипает при прокрутке */
}
.cs-sidebar-widget-title { 
    font-size: 16px !important; 
    font-weight: 900 !important; 
    color: #0f172a !important; 
    border-bottom: 3px solid #f1f5f9 !important; 
    padding-bottom: 12px !important; 
    margin: 0 0 20px 0 !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}
.cs-sidebar-recent-posts-list { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 18px !important; 
}

/* Интерактивная карточка в сайдбаре */
.cs-sb-post-card-row { 
    display: flex !important; 
    align-items: center !important; 
    gap: 14px !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    padding-bottom: 16px !important; 
}
.cs-sb-post-card-row:last-child { 
    border-bottom: none !important; 
    padding-bottom: 0 !important; 
}

.cs-sb-post-thumb { 
    width: 85px !important; 
    height: 60px !important; 
    border-radius: 8px !important; 
    overflow: hidden !important; 
    background: #cbd5e1 !important; 
    flex-shrink: 0 !important; 
    border: 1px solid #e2e8f0 !important; 
}
.cs-sb-post-thumb img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
}

/* Эффект приближения картинки при наведении на блок в сайдбаре */
.cs-sb-post-card-row:hover .cs-sb-post-thumb img {
    transform: scale(1.08) !important; 
}

.cs-sb-post-info { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 4px !important; 
}
.cs-sb-post-title { 
    font-size: 14px !important; 
    font-weight: 700 !important; 
    margin: 0 !important; 
    line-height: 1.4 !important; 
}
.cs-sb-post-title a { 
    color: #1e293b !important; 
    text-decoration: none !important; 
    transition: color 0.15s ease !important; 
}
.cs-sb-post-title a:hover { 
    color: #e67e22 !important; 
}
.cs-sb-post-date { 
    font-size: 11px !important; 
    color: #94a3b8 !important; 
    font-weight: 700 !important; 
}

/* =========================================================================
   УЛЬТРА-ОПТИМИЗИРОВАННАЯ МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================= */
@media screen and (max-width: 992px) {
    .cs-single-post-page .cs-post-layout-grid { 
        grid-template-columns: 1fr !important; 
        gap: 35px !important; 
    }
    .cs-classic-block-post-card { 
        padding: 35px 25px !important; 
    }
    .cs-post-main-title { 
        font-size: 30px !important; 
    }
}

@media screen and (max-width: 768px) {
    /* НА СМАРТФОНАХ СХЛОПЫВАЕМ КАТЕГОРИИ В СТИЛЬНУЮ КНОПКУ-ШТОРКУ */
    .csc-nav-toggle__button { 
        display: flex !important; 
        width: 100% !important; 
        background: #ffffff !important; 
        border: 2px solid #cbd5e1 !important; 
        border-radius: 12px !important; 
        padding: 12px 16px !important; 
        font-size: 14px !important; 
        font-weight: 800 !important; 
        color: #0f172a !important; 
        cursor: pointer !important; 
        justify-content: space-between !important; 
        box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    }
    .csc-nav-toggle__button::after { 
        content: "▼" !important; 
        font-size: 10px; 
        color: #94a3b8; 
    }
    
    .csc-nav-toggle__hidden { 
        display: none !important; 
        flex-direction: column !important; 
        gap: 4px !important; 
        background: #ffffff !important; 
        border: 2px solid #e2e8f0 !important; 
        border-radius: 12px !important; 
        padding: 10px !important; 
        margin-top: 6px !important; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important; 
    }
    .csc-nav-toggle__hidden.open { 
        display: flex !important; 
    }
    .csc-nav-toggle__hidden .csc-top-new__btn { 
        width: 100% !important; 
        border: none !important; 
        background: transparent !important; 
        text-align: left !important; 
        padding: 12px 14px !important; 
        font-weight: 700 !important;
    }
    .csc-nav-toggle__hidden .csc-top-new__btn:hover { 
        background: #f1f5f9 !important; 
        color: #e67e22 !important; 
    }
}

@media screen and (max-width: 576px) {
    .cs-classic-block-post-card { 
        padding: 25px 15px !important; 
        border-radius: 16px !important; 
    }
    .cs-post-main-title { 
        font-size: 24px !important; 
        margin-bottom: 20px !important; 
    }
    .cs-post-body-text-content { 
        font-size: 15px !important; 
    }
    .cs-post-featured-image-wrap { 
        max-height: 260px !important; 
        margin-bottom: 25px !important; 
    }
    .cs-premium-toc-block { 
        padding: 25px 20px !important; 
    }
}

/* Кнопка переключения содержания [показать / скрыть] */
.cs-toc-head {
    justify-content: space-between !important;
    width: 100% !important;
}

.cs-toc-toggle {
    background: none !important;
    border: none !important;
    color: #e67e22 !important; /* Наш фирменный оранжевый цвет */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Класс, который плавно скрывает список на мобильных */
.cs-premium-toc-block.collapsed .cs-toc-list {
    display: none !important;
}

.cs-premium-toc-block.collapsed {
    padding-bottom: 25px !important; /* Уменьшаем отступ снизу, когда скрыто */
}
