/*
Theme Name: Sledz Info Blog
Author: Sledz Team
Description: Шаблон блога на основе Tailwind CSS.
Version: 1.0
*/
.prose { color: #1a1a1a; max-width: 100%; }
        .prose h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2rem; color: #000; }
        .prose h2 { font-size: 1.8rem; font-weight: 700; margin-top: 3.5rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
        .prose p { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem; color: #333; }
        .prose a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
        .prose ul { list-style-type: disc; margin-bottom: 1.5rem; padding-left: 1.25rem; }
        .prose blockquote { margin: 3rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid #000; }
        .tech-magnet { position: relative; background: #ffffff; border: 1px solid #e2e8f0; overflow: hidden; }
        .tech-top-bar { height: 2px; background: linear-gradient(90deg, #1B84FF, transparent); width: 40%; position: absolute; top: 0; left: 0; }
        .tech-btn { background: #000; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; border: 1px solid #000; transition: all 0.3s; }
        .tech-btn:hover { background: transparent; color: #000; }
.prose { color: #1a1a1a; max-width: 100%; }
.prose h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2rem; color: #000; }
.prose h2 { font-size: 1.8rem; font-weight: 700; margin-top: 3.5rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; color: #000; }
.prose p { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem; color: #333; }

.prose a { color: #000; text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.prose a:hover { opacity: 0.6; }

.prose pre { 
    background: #f9f9f9; 
    border: 1px solid #000; /* Тонкая черная рамка вместо синей полосы */
    padding: 1.5rem;
    border-radius: 0px; /* Убираем скругление для строгости */
    overflow-x: auto;
    margin: 2.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
    position: relative;
}
.prose pre::before {
    content: "TECHNICAL FLOW";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    padding: 2px 6px;
    background: #000;
    color: #fff;
    font-weight: 700;
}

.prose ol { 
    counter-reset: technical-step;
    list-style: none; 
    padding-left: 0; 
    margin: 2rem 0;
}
.prose ol li { 
    counter-increment: technical-step;
    position: relative;
    padding-left: 3rem; /* Больше отступ для акцента на цифре */
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}
.prose ol li::before { 
    content: counter(technical-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid #000; /* Цифра в черном квадрате/рамке */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.prose ul { list-style-type: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.prose ul li::before { 
    content: "—"; 
    position: absolute; 
    left: 0; 
    color: #000; 
}

.prose blockquote { margin: 3rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid #000; font-style: normal; }
/* --- ГЛОБАЛЬНЫЕ ТЕХ-СТИЛИ --- */
:root { --brand-blue: #1B84FF; --black: #000000; --gray-light: #f9f9f9; }

#reading-progress {
    position: fixed; top: 64px; left: 0; width: 0%; height: 2px;
    background: var(--black); z-index: 100; transition: width 0.1s ease;
}

/* 1. Data Snapshot */
.data-snapshot { border: 1px solid var(--black) !important; padding: 40px !important; margin: 40px 0 !important; }
.data-snapshot .number { font-family: 'JetBrains Mono', monospace !important; font-size: 4rem !important; font-weight: 700 !important; color: var(--black) !important; margin: 0 !important; line-height: 1 !important; }
.data-snapshot .label { font-family: 'JetBrains Mono', monospace !important; font-size: 10px !important; text-transform: uppercase !important; letter-spacing: 2px !important; color: #666 !important; margin-top: 10px !important; }

/* 2. Expert Verdict */
.expert-verdict { background: var(--black) !important; color: #fff !important; padding: 40px !important; margin: 40px 0 !important; border-radius: 0 !important; }
.expert-verdict h4 { color: #fff !important; font-family: 'JetBrains Mono', monospace !important; font-size: 14px !important; letter-spacing: 3px !important; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px !important; }
.expert-verdict p { color: #bbb !important; font-size: 1.1rem !important; }

/* 3. Pro vs Con Grid */
.comparison-grid { border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); padding: 20px 0; margin: 40px 0 !important; }
.comparison-grid .wp-block-column:first-child { border-right: 1px solid #eee; }
.comparison-grid h6 { font-family: 'JetBrains Mono', monospace !important; font-size: 12px !important; letter-spacing: 2px !important; margin-bottom: 15px !important; }
.comparison-grid ul { list-style: none !important; padding: 0 !important; }
.comparison-grid li { font-size: 14px !important; margin-bottom: 8px !important; padding-left: 20px !important; position: relative; }
.comparison-grid .wp-block-column:first-child li::before { content: "-"; position: absolute; left: 0; color: var(--black); font-weight: bold; }
.comparison-grid .wp-block-column:last-child li::before { content: "+"; position: absolute; left: 0; color: #999; }

/* 4. ASCII Divider */
.ascii-divider { font-family: 'JetBrains Mono', monospace !important; font-size: 10px !important; color: #eee !important; margin: 60px 0 !important; letter-spacing: -2px; overflow: hidden; white-space: nowrap; }

.prose pre { 
    background: var(--gray-light); border: 1px solid var(--black); padding: 25px; 
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; line-height: 1.6; color: var(--black); 
    position: relative; margin: 40px 0;
}
.prose pre::before { content: "TECHNICAL_FLOW"; position: absolute; top: 0; right: 0; background: var(--black); color: #fff; font-size: 8px; padding: 3px 8px; }

.footnotes { border-top: 1px solid #eee; margin-top: 60px; padding-top: 20px; }
.footnote-item { font-size: 12px; color: #666; font-family: 'Inter', sans-serif; margin-bottom: 10px; }
.footnote-item span { font-family: 'JetBrains Mono', monospace; font-weight: bold; margin-right: 10px; color: var(--black); }

/* 1. Case Brief */
.case-brief {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    margin: 40px 0;
    gap: 20px;
}
.case-brief div span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.case-brief div p {
    font-weight: 700;
    font-size: 14px;
    margin: 0 !important;
}

/* 2. Action Plan / Checklist */
.action-plan { list-style: none !important; padding: 0 !important; }
.action-plan li { 
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
}
.action-plan li::before {
    content: "[ ]";
    margin-right: 15px;
    color: #000;
}
.action-plan li.done::before {
    content: "[x]";
}

/* 3. Deep Dive (Details) */
details.tech-details {
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
}
details.tech-details summary {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
}
details.tech-details[open] summary {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
/* Стили для списка категорий в сайдбаре */
aside ul li {
    margin-bottom: 0.75rem;
}
aside ul li a {
    text-decoration: none;
    transition: all 0.2s;
}
aside ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
aside ul li.current-cat a {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

/* Стили стандартной пагинации WP */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pagination .nav-links {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}
.pagination .page-numbers {
    display: none; /* Скрываем номера страниц как в макете */
}
.pagination .page-numbers.prev, 
.pagination .page-numbers.next {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
}



/* Заголовок категории в сайдбаре */
aside h4 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #9ca3af !important; /* gray-400 */
    margin-bottom: 1rem !important;
}

/* Список категорий в сайдбаре */
aside ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

aside ul li {
    margin-bottom: 0.75rem !important;
}

aside ul li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

/* Подчеркивание для активной категории или при ховере */
aside ul li a:hover, 
aside ul li.current-cat a {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

/* Стили анонса статьи в списке */
article h2 a {
    color: #000;
    text-decoration: none;
}

article h2 a:hover {
    opacity: 0.7;
}

article p {
    color: #4b5563 !important; /* gray-600 */
    line-height: 1.625 !important;
    margin-top: 1rem !important;
}



   /* --- Light High-Tech Lead Magnet --- */
        .tech-magnet {
            position: relative;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            box-shadow: 0 10px 30px -10px rgba(27, 132, 255, 0.1);
        }
        /* Тонкая сетка на фоне */
        .tech-magnet::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: radial-gradient(#1B84FF 0.5px, transparent 0.5px);
            background-size: 12px 12px;
            opacity: 0.05;
            pointer-events: none;
        }
        /* Акцентная линия сверху */
        .tech-top-bar {
            height: 2px;
            background: linear-gradient(90deg, #1B84FF, transparent);
            width: 40%;
            position: absolute;
            top: 0;
            left: 0;
        }
        .tech-btn {
            background: #000;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            border: 1px solid #000;
        }
        .tech-btn:hover {
            background: transparent;
            color: #000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        @keyframes scan {
            0% { top: -100%; }
            100% { top: 200%; }
        }

        .cta-btn {
            background: transparent;
            border: 1px solid #1B84FF;
            color: #fff;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 11px;
            font-weight: 800;
        }

        .cta-btn:hover {
            background: #1B84FF;
            box-shadow: 0 0 30px rgba(27, 132, 255, 0.6);
            transform: scale(1.02);
        }

        .corner-element {
            position: absolute;
            width: 8px;
            height: 8px;
            border-color: #1B84FF;
            border-style: solid;
            pointer-events: none;
        }









/* --- PRODUCT MATRIX: FINAL + TOOLTIP --- */

.product-matrix {
    border: 1px solid #000;
    background: #fff;
    margin: 4rem 0;
    position: relative;
    padding-bottom: 15px;
}

/* Badge */
.product-matrix::before {
    content: "ANOMALY";
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 2px 6px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
}

.pm-grid-container {
    gap: 0 !important;
    align-items: stretch;
}

/* LEFT COLUMN */
.pm-left-col {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.pm-hero-header {
    gap: 15px;
    margin-bottom: 30px !important;
    align-items: flex-start !important;
}
.pm-main-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 4px;
}
.pm-main-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-width: 150px;
    font-weight: 600;
}
.pm-stat-block {
    margin-top: auto;
    margin-bottom: 15px !important;
}
.pm-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1 !important;
    margin: 0 !important;
    color: #000;
    letter-spacing: -1px;
}
.pm-lbl {
    font-size: 9px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 5px !important;
}
.pm-quiet-link a {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.pm-quiet-link a:hover { color: #000; }

/* RIGHT COLUMN */
.pm-right-col {
    padding: 25px;
    border-left: 1px solid transparent; 
}
.pm-table-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #ccc;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    text-transform: uppercase;
}

/* ROWS */
.pm-table-row {
    margin-bottom: 4px !important;
    align-items: center;
    position: relative; /* База для тултипа и ссылки */
    padding: 6px 8px !important;
    border-radius: 4px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}
.pm-table-row:last-child { border-bottom: none; }

.pm-table-row:hover {
    background: #f4f4f5;
    cursor: pointer;
}

/* STRETCHED LINK (Делает всю строку кликабельной) */
.pm-t-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- TOOLTIP HOVER EFFECT (Новая часть) --- */
.pm-table-row:hover::before {
    content: "Otwórz kartę produkt na Allegro (nowa karta)";
    position: absolute;
    bottom: 100%; /* Появляется над строкой */
    right: 0;     /* Прижат к правому краю */
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 100; /* Поверх всего */
    pointer-events: none; /* Чтобы не мешал клику */
    margin-bottom: 4px; /* Отступ от строки */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: tooltipFade 0.2s ease forwards;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили текста в строке */
.pm-t-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 !important;
    z-index: 2;
}
.pm-t-name a { color: inherit; text-decoration: none; }
.pm-t-name .id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 400;
    color: #bbb;
    margin-left: 6px;
}
.pm-t-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #000;
    margin: 0 !important;
    min-width: 30px;
    text-align: right;
    z-index: 2;
}

.pm-table-row.is-noise { opacity: 0.5; }
.pm-table-row.is-noise:hover { opacity: 1; }
.pm-table-row.is-noise .pm-t-name { font-weight: 400; }

/* CAPTION */
.pm-caption {
    margin: 0 25px !important;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
    line-height: 1.5;
}
.pm-caption strong { color: #000; font-weight: 600; }
.pm-caption .marker { color: #ddd; margin-right: 8px; }

@media (max-width: 768px) {
    .pm-grid-container { flex-direction: column; }
    .pm-left-col, .pm-right-col { width: 100% !important; padding: 20px; }
    .pm-caption { margin: 0 20px !important; }
    /* На мобильном тултип лучше скрыть, чтобы не перекрывал пальцы */
    .pm-table-row:hover::before { display: none; }
}

















/* --- RESEARCH SUMMARY CARD (ASCETIC) --- */

.research-summary-card {
    border: 1px solid #000;
    padding: 35px 40px !important; /* Увеличили внутренние отступы */
    margin: 4rem 0 !important;
    background: #fff;
}

.rs-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px; /* Еще меньше */
    letter-spacing: 2px;
    color: #bbb;
    margin-bottom: 8px !important;
}

.rs-title {
    font-size: 1.15rem !important; /* Чуть уменьшили для строгости */
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
}

/* --- ТАБЛИЦА --- */
.rs-table table {
    width: 100%;
    border-collapse: collapse !important;
    font-variant-numeric: tabular-nums; /* ВАЖНО: Моноширинные цифры для Inter */
}

/* Общий стиль заголовков */
.rs-table thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    color: #ccc;
    padding: 12px 20px; /* Увеличили отступы ячеек */
    border-bottom: 1.5px solid #000;
}

/* Общий стиль ячеек */
.rs-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #000;
}

/* ВЫРАВНИВАНИЕ КОЛОНОК */

/* 1. Первая колонка (Названия) - Вторичная */
.col-product {
    text-align: left !important;
    padding-left: 0 !important; /* Убираем левый отступ у края таблицы */
    font-size: 11px !important; /* Меньше кегль */
    color: #888 !important; /* Серый цвет */
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Тонкое сокращение если не влезает */
}

/* 2. Числовые колонки (2-5) - Право-ориентированные */
.col-data {
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace !important; /* Числа всегда моноширинные */
}

/* Последняя колонка (Процент) - Убираем правый паддинг у края */
.rs-table thead th:last-child,
.rs-table tbody td:last-child {
    padding-right: 0 !important;
    font-weight: 500; /* Не bold, просто средний вес */
}

/* Примечание (Footnote) */
.rs-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #ddd; /* Очень светлый, почти шум */
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    text-align: left;
}

/* Убираем рамку у последней строки */
.rs-table tbody tr:last-child td {
    border-bottom: none;
}

/* Адаптив */
@media (max-width: 768px) {
    .research-summary-card { padding: 20px !important; }
    .rs-table { display: block; overflow-x: auto; }
}

