/* SEO Generator - Frontend Styles - Betboom Style */

/* Google Fonts - Oswald */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700;900&display=swap');

/* Скрыть стандартные заголовки темы для страниц плагина */
.page .entry-title,
.page .page-title,
body.page .entry-title,
body.page .page-title {
    display: none !important;
}

/* Основной контейнер */
.seogen-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Общий стиль страницы - усиленная специфичность */
body.page .entry-content,
body.single-page .entry-content,
.page .entry-content {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: #1a1a1a !important;
    line-height: 1.8 !important;
}

/* Таблицы критериев - Betboom Style - усиленная специфичность */
.entry-content .wp-block-table,
.page .entry-content .wp-block-table,
body.page .entry-content .wp-block-table {
    margin: 40px 0 !important;
    overflow-x: auto !important;
}

.entry-content .wp-block-table table,
.page .entry-content .wp-block-table table,
body.page .entry-content .wp-block-table table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #f5f6f8 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.entry-content .wp-block-table thead,
.page .entry-content .wp-block-table thead {
    background: #ffffff !important;
}

.entry-content .wp-block-table th,
.page .entry-content .wp-block-table th,
body.page .entry-content .wp-block-table th {
    color: #1a1a1a !important;
    padding: 20px 25px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border-bottom: 3px solid #e0e3e8 !important;
}

.entry-content .wp-block-table td,
.page .entry-content .wp-block-table td,
body.page .entry-content .wp-block-table td {
    padding: 20px 25px !important;
    border-bottom: 1px solid #e0e3e8 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.entry-content .wp-block-table tbody tr:last-child td,
.page .entry-content .wp-block-table tbody tr:last-child td {
    border-bottom: none !important;
}

.entry-content .wp-block-table tbody tr:hover td,
.page .entry-content .wp-block-table tbody tr:hover td {
    background-color: #fafbfc !important;
    transition: background-color 0.2s !important;
}

/* Первая колонка (Критерий) - жирная */
.entry-content .wp-block-table td:first-child,
.page .entry-content .wp-block-table td:first-child {
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* Вторая колонка - с галочкой (если нужно) */
.wp-block-table td::before {
    /* Можно добавить галочку через CSS если нужно */
}

/* Заголовки в стиле Betboom - усиленная специфичность */
.entry-content .wp-block-heading,
.page .entry-content .wp-block-heading,
body.page .entry-content .wp-block-heading {
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

.entry-content .wp-block-heading:first-child,
.page .entry-content .wp-block-heading:first-child {
    margin-top: 0 !important;
}

/* H1 - Главный заголовок страницы (только внутри контента) */
.entry-content h1.wp-block-heading,
.page .entry-content h1.wp-block-heading,
body.page .entry-content h1.wp-block-heading {
    color: #1a1a1a !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding-bottom: 10px !important;
    border-bottom: none !important;
    position: relative !important;
    margin-top: 0 !important;
    margin-bottom: 45px !important;
    line-height: 1.3 !important;
}

/* Короткое толстое синее подчеркивание под текстом */
.entry-content h1.wp-block-heading::after,
.page .entry-content h1.wp-block-heading::after,
body.page .entry-content h1.wp-block-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 0 !important;
    width: 130px !important;
    height: 6px !important;
    background: #2c40ff !important;
    border-radius: 0 !important;
}

/* Длинная тонкая серая линия под синим подчеркиванием */
.entry-content h1.wp-block-heading::before,
.page .entry-content h1.wp-block-heading::before,
body.page .entry-content h1.wp-block-heading::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: #d0d0d0 !important;
}

/* H2 - Главные заголовки (ЗАГЛАВНЫЕ) */
.entry-content h2.wp-block-heading,
.page .entry-content h2.wp-block-heading,
body.page .entry-content h2.wp-block-heading {
    color: #1a1a1a !important;
    font-size: 32px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 10px !important;
    border-bottom: none !important;
    position: relative !important;
    margin-bottom: 35px !important;
}

/* Короткое толстое синее подчеркивание под текстом */
.entry-content h2.wp-block-heading::after,
.page .entry-content h2.wp-block-heading::after,
body.page .entry-content h2.wp-block-heading::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 0 !important;
    width: 130px !important;
    height: 6px !important;
    background: #2c40ff !important;
    border-radius: 0 !important;
}

/* Длинная тонкая серая линия под синим подчеркиванием */
.entry-content h2.wp-block-heading::before,
.page .entry-content h2.wp-block-heading::before,
body.page .entry-content h2.wp-block-heading::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: #d0d0d0 !important;
}

/* H3 - Подзаголовки */
.entry-content h3.wp-block-heading,
.page .entry-content h3.wp-block-heading,
body.page .entry-content h3.wp-block-heading {
    color: #1a1a1a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
}

/* Параграфы */
.wp-block-paragraph {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 17px;
    color: #1a1a1a;
}

/* Блоки с информацией (в стиле карточек Betboom) */
.info-box,
.criteria-box {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

/* Списки с галочками */
.wp-block-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.7;
}

.wp-block-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Списки */
.wp-block-list {
    margin: 30px 0;
    padding-left: 0;
    list-style: none;
}

.wp-block-list li {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Статистические блоки (для числовых данных) */
.stats-number {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
}

.stats-label {
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-top: 10px;
}

/* Grid для карточек (если AI создаёт несколько блоков рядом) */
.wp-block-columns {
    gap: 20px;
}

.wp-block-column {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 25px;
}

/* Шорткод блок - рейтинг БК */
.wp-block-shortcode {
    margin: 50px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* Дисклеймер - Betboom Style */
.seogen-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    padding: 25px 30px;
    margin: 50px 0;
    border-radius: 8px;
}

.seogen-disclaimer em {
    font-style: normal;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

/* FAQ секция - Betboom Style */
.seogen-faq-title {
    background: transparent;
    padding: 0;
    border: none;
    margin-top: 60px;
    margin-bottom: 35px;
    /* Стиль как у обычных H2 */
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: none;
    position: relative;
}

/* Короткое толстое синее подчеркивание под текстом */
.seogen-faq-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 0 !important;
    width: 130px !important;
    height: 6px !important;
    background: #2c40ff !important;
    border-radius: 0 !important;
}

/* Длинная тонкая серая линия под синим подчеркиванием */
.seogen-faq-title::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1px !important;
    background: #d0d0d0 !important;
}

/* FAQ Аккордеон */
.seogen-faq-accordion {
    margin: 40px 0;
}

.seogen-faq-accordion .faq-item {
    background: #f5f6f8;
    border: none;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.seogen-faq-accordion .faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.seogen-faq-accordion .faq-item[open] {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.seogen-faq-accordion .faq-question {
    padding: 22px 60px 22px 25px;
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    user-select: none;
    font-family: Oswald !important;
}

.seogen-faq-accordion .faq-question:hover {
    color: #2c40ff;
}

.seogen-faq-accordion .faq-item[open] .faq-question {
    background: transparent;
    color: #2c40ff;
    border-bottom: 1px solid #e0e3e8;
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* Иконка стрелки */
.seogen-faq-accordion .faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    color: #2c40ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.seogen-faq-accordion .faq-item[open] .faq-question::after {
    content: '−';
    color: #2c40ff;
}

/* Скрыть нативный маркер в Safari */
.seogen-faq-accordion .faq-question::-webkit-details-marker {
    display: none;
}

/* Ответ */
.seogen-faq-accordion .faq-answer {
    padding: 25px;
    line-height: 1.5;
    color: #1a1a1a;
    background: transparent;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
    font-family: Oswald !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив - Betboom Style */
@media (max-width: 1024px) {
    .seogen-content,
    .entry-content {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Заголовки */
    h1.wp-block-heading {
        font-size: 28px !important;
        padding-bottom: 8px !important;
        margin-bottom: 30px !important;
        letter-spacing: 0.5px !important;
    }
    
    h1.wp-block-heading::after {
        width: 100px !important;
        height: 5px !important;
        bottom: 2px !important;
    }
    
    h1.wp-block-heading::before {
        bottom: 0 !important;
    }
    
    h2.wp-block-heading {
        font-size: 24px;
        padding-bottom: 8px;
    }
    
    h2.wp-block-heading::after {
        width: 100px !important;
        height: 5px !important;
        bottom: 2px !important;
    }
    
    h2.wp-block-heading::before {
        bottom: 0 !important;
    }
    
    h3.wp-block-heading {
        font-size: 19px;
    }
    
    /* Параграфы */
    .wp-block-paragraph {
        font-size: 16px;
    }
    
    /* Таблицы */
    .wp-block-table {
        font-size: 14px;
    }
    
    .wp-block-table th,
    .wp-block-table td {
        padding: 15px 18px;
    }
    
    .wp-block-table th {
        font-size: 14px;
    }
    
    /* FAQ */
    .seogen-faq-title {
        font-size: 24px;
        padding-bottom: 8px;
    }
    
    .seogen-faq-title::after {
        width: 100px !important;
        height: 5px !important;
        bottom: 2px !important;
    }
    
    .seogen-faq-title::before {
        bottom: 0 !important;
    }
    
    .seogen-faq-accordion .faq-question {
        font-size: 16px;
        padding: 18px 50px 18px 20px;
    }
    
    .seogen-faq-accordion .faq-answer {
        padding: 20px;
        font-size: 15px;
    }
    
    /* Списки */
    .wp-block-list li {
        font-size: 16px;
        padding-left: 35px;
    }
    
    .wp-block-list li::before {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    /* Дисклеймер */
    .seogen-disclaimer {
        padding: 20px;
    }
    
    .seogen-disclaimer em {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    h2.wp-block-heading {
        font-size: 20px;
    }
    
    .wp-block-table th,
    .wp-block-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Related Pages Navigation */
.seogen-related-pages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 60px 0 40px;
    padding: 0;
}

.seogen-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 100px;
}

.seogen-related-item:hover {
    background: #ffffff;
    border-color: #2c40ff;
    box-shadow: 0 4px 20px rgba(44, 64, 255, 0.15);
    transform: translateY(-2px);
}

.seogen-related-content {
    flex: 1;
}

.seogen-related-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c40ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.seogen-related-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.seogen-related-item:hover .seogen-related-title {
    color: #2c40ff;
}

.seogen-related-arrow {
    flex-shrink: 0;
    color: #2c40ff;
    transition: transform 0.3s ease;
}

.seogen-related-left .seogen-related-arrow {
    margin-right: 16px;
    order: -1;
}

.seogen-related-right .seogen-related-arrow {
    margin-left: 16px;
}

.seogen-related-item:hover.seogen-related-left .seogen-related-arrow {
    transform: translateX(-4px);
}

.seogen-related-item:hover.seogen-related-right .seogen-related-arrow {
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 768px) {
    .seogen-related-pages {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 40px 0 30px;
    }
    
    .seogen-related-item {
        padding: 20px 22px;
        min-height: 90px;
    }
    
    .seogen-related-title {
        font-size: 16px;
    }
    
    .seogen-related-label {
        font-size: 12px;
    }
}
