﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/**
 * ================================================================
 * РЕЗИНОВЫЕ СТИЛИ ДЛЯ БЛОКА ГЕРОЯ (ШАПКИ) ГЛАВНОЙ СТРАНИЦЫ
 * ================================================================
 */

/* ===== БЛОК ГЕРОЯ ===== */
.library-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3vw, 30px);
    padding: clamp(10px, 2vw, 20px) 0 clamp(8px, 1.5vw, 12px);
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .library-hero {
        max-width: 1000px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .library-hero {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ===== ВЕРХНИЙ БЕЙДЖ ===== */
.library-hero__eyebrow span {
    font-size: clamp(0.875rem, 4vw, 1.5rem);
    letter-spacing: clamp(0.5px, 0.1em, 2px);
    text-transform: uppercase;
    color: #7f8c8d;
    background: rgba(0, 0, 0, 0.05);
    padding: clamp(4px, 1vw, 8px) clamp(12px, 2.5vw, 24px);
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .library-hero__eyebrow span {
        white-space: normal;
        font-size: 0.875rem;
    }
}

/* ===== ГЛАВНЫЙ ЗАГОЛОВОК ===== */
.library-hero__title {
    margin: 0;
    letter-spacing: -0.02em;
    width: 100%;
}

.library-hero__title-line {
    display: block;
    color: inherit;
    font-weight: 500;
    font-size: clamp(1.75rem, 6vw, 4rem);
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
}

.library-hero__title-pill {
    display: inline-block;
    background: linear-gradient(135deg, #e04d4c 0%, #3b6bb6 100%);
    color: #ffffff;
    border-radius: clamp(6px, 1.5vw, 12px);
    margin-top: clamp(8px, 2vw, 20px);
    font-weight: 600;
    font-size: clamp(1.3rem, 5vw, 3.5rem);
    line-height: 1.2;
    padding: clamp(4px, 1vw, 8px) clamp(16px, 3vw, 32px);
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 560px) {
    .library-hero__title-pill {
        white-space: normal;
        word-break: keep-all;
        line-height: 1.3;
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .library-hero__title-pill {
        font-size: 1.3rem;
        padding: 6px 14px;
    }
}

@media (max-width: 380px) {
    .library-hero__title-pill {
        font-size: 1.1rem;
        padding: 4px 12px;
    }
}

/* ===== ПОДЗАГОЛОВОК ===== */
.library-hero__subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    line-height: 1.5;
    color: inherit;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

@media (max-width: 767px) {
    .library-hero__subtitle {
        max-width: 100%;
        padding: 0;
    }
}

/* ===== ПОИСК (ФОРМА) ===== */
.library-search {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 60px;
    padding: clamp(8px, 1.5vw, 14px) clamp(14px, 2.5vw, 24px);
    width: 100%;
    max-width: 560px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

@media (max-width: 767px) {
    .library-search {
        max-width: 100%;
        width: 100%;
    }
}

.library-search:hover,
.library-search:focus-within {
    border-color: #e0e0e0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.library-search__icon {
    display: none;
}

.library-search__input,
#library-search-input {
    flex: 1;
    border: none !important;
    background: transparent;
    font-size: clamp(0.75rem, 2.2vw, 1rem);
    color: #2d2b2c;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    min-width: 0;
    margin-left: clamp(4px, 1vw, 8px);
}

.library-search__input:focus,
#library-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.library-search__input::placeholder,
#library-search-input::placeholder {
    color: #2d2b2c;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .library-search__input::placeholder,
    #library-search-input::placeholder {
        white-space: normal;
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

.library-search__button {
    background: linear-gradient(135deg, #e04d4c 0%, #3b6bb6 100%);
    border: none;
    cursor: pointer;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.library-search__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 107, 182, 0.3);
}

.library-search__hint {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #ffffff;
    opacity: 1;
    font-family: inherit;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .library-search__hint {
        font-size: 0.75rem;
    }
}

/**
 * ================================================================
 * КНОПКИ КАТЕГОРИЙ НА ГЛАВНОЙ СТРАНИЦЕ
 * ================================================================
 */

/* Контейнер кнопок */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 0;
    width: 100%;
}

/* Кнопка категории */
.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 85px;
    padding: 12px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #1a1a1a;
    color: #ffffff !important;
}

.category-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Иконка */
.category-btn__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Текст */
.category-btn__text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: #ffffff !important;
}

/* ЦВЕТА КНОПОК */
.category-btn[data-category-slug="chatgpt"] {
    background-color: #4DA770 !important;
}
.category-btn[data-category-slug="claude"] {
    background-color: #D97858 !important;
}
.category-btn[data-category-slug="deepseek"] {
    background-color: #4D6BFE !important;
}
.category-btn[data-category-slug="gemini"] {
    background: linear-gradient(135deg, #FF9500, #3789FF) !important;
}
.category-btn[data-category-slug="grok"] {
    background-color: #000000 !important;
}
.category-btn[data-category-slug="midjourney"] {
    background-color: #344163 !important;
}
.category-btn[data-category-slug="nano-banana"] {
    background-color: #E3BC1A !important;
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    .category-buttons {
        gap: 10px;
    }
    .category-btn {
        min-width: 70px;
        padding: 10px 6px;
        gap: 6px;
    }
    .category-btn__icon {
        width: 24px;
        height: 24px;
    }
    .category-btn__text {
        font-size: 10px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .category-buttons {
        gap: 8px;
    }
    .category-btn {
        min-width: 60px;
        padding: 8px 4px;
        gap: 5px;
    }
    .category-btn__icon {
        width: 20px;
        height: 20px;
    }
    .category-btn__text {
        font-size: 9px;
    }
}

/* ===== НАВИГАЦИЯ ПО КАТЕГОРИЯМ (ЧИПЫ) ===== */
.category-nav {
    width: 100%;
    position: relative;
    margin: clamp(20px, 4vw, 40px) auto 0;
    padding: 0;
}

@media (min-width: 768px) {
    .category-nav {
        max-width: 1400px;
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .category-nav {
        padding: 0 12px;
    }
}

.category-nav__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.category-nav__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.05);
    color: #333333 !important;
}

.category-nav__chip:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: #333333 !important;
}

.category-nav__chip--active,
.category-nav__chip--active:hover,
.category-nav__chip--active:focus,
.category-nav__chip--active:active {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.category-nav__chip--collapsed {
    display: none;
}

.category-nav__row.expanded .category-nav__chip--collapsed {
    display: inline-flex;
}

.category-nav__chip--toggle {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333 !important;
}

.category-nav__chip--toggle:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
    color: #333333 !important;
}

.category-nav__chip--toggle svg {
    width: 16px;
    height: auto;
    flex-shrink: 0;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .category-nav__chip {
        padding: 6px 12px;
        font-size: 14px;
    }
    .category-nav__chip--toggle svg {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .category-nav__chip {
        padding: 5px 10px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .category-nav__chip {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* ===== ДЕСКТОП БОЛЬШИЕ ЭКРАНЫ ===== */
@media (min-width: 1200px) {
    .library-hero__title-line {
        font-size: 56px;
    }
    
    .library-hero__title-pill {
        font-size: 3.5rem;
        margin-top: 20px;
    }
    
    .library-hero__eyebrow span {
        font-size: 1.5rem;
    }
    
    .library-hero__subtitle {
        font-size: 1.25rem;
    }
    
    .library-search__input {
        font-size: 1rem;
    }
    
    .category-nav__chip {
        padding: 8px 18px;
        font-size: 16px;
    }
}

/**
 * ================================================================
 * ВЕРТИКАЛЬНЫЕ КАРТОЧКИ ПОСТОВ
 * Главная | Архивы | Поиск | Похожие записи
 * ================================================================
 */

/* ---------- СЕТКА ---------- */
.post-cards--vertical {
    display: grid !important;
    grid-auto-flow: row dense !important;
    grid-gap: 15px !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

/* ---------- КАРТОЧКИ ---------- */
.post-card--vertical,
.post-card--related {
    border-radius: 6px !important;
    background: transparent !important;
}



.post-card__title a {
    text-decoration: none !important;
    transition: all 0.3s !important;
}

/* Размер заголовка */
.post-card--vertical .post-card__title,
.post-card--related .post-card__title {
    font-size: 1.0em !important;
}

/* 2 строки + многоточие */
.post-card--vertical .post-card__title,
.post-card--related .post-card__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ---------- ОПИСАНИЕ ---------- */
.post-card--vertical .post-card__description,
.post-card--related .post-card__description {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.9em !important;
    line-height: 1.5 !important;
    margin-bottom: 0.8em !important;
    color: #4D4D4D !important;
}

/* ---------- КАРТОЧКИ БЕЗ МИНИАТЮРЫ ---------- */
.post-card--vertical.post-card--thumbnail-no,
.post-card--related.post-card--thumbnail-no {
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 20px !important;
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s !important;
}

.post-card--vertical.post-card--thumbnail-no .post-card__description,
.post-card--related.post-card--thumbnail-no .post-card__description {
    margin-bottom: 1em !important;
}

/* ---------- КАТЕГОРИИ ---------- */
.post-card--vertical .post-card__category {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-transform: none !important;
    margin-bottom: 1em !important;
}

/* Иконка внутри категории */
.post-card--vertical .post-card__category .cat-icon {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.post-card--vertical .post-card__category .cat-icon svg {
    width: 1em !important;
    height: 1em !important;
    display: block !important;
}

/* Цвета рубрик */
.post-card--vertical .post-card__category[data-category-slug="chatgpt"] {
    background-color: #4DA770 !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="claude"] {
    background-color: #D97858 !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="deepseek"] {
    background-color: #4D6BFE !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="gemini"] {
    background: linear-gradient(135deg, #FF9500, #3789FF) !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="grok"] {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="midjourney"] {
    background-color: #344163 !important;
    color: #ffffff !important;
}
.post-card--vertical .post-card__category[data-category-slug="nano-banana"] {
    background-color: #E3BC1A !important;
    color: #ffffff !important;
}
/* Рубрика по умолчанию — прозрачная, обводка #e04d4c, текст #3b6bb6 */
.post-card--vertical .post-card__category[data-category-slug="default"] {
    background: transparent !important;
    border: 1px solid #333333 !important;
    color: #333333 !important;
}

/* ---------- МИНИАТЮРЫ (если есть) ---------- */
.post-card--vertical .post-card__thumbnail img {
    border-radius: 6px !important;
}



/* Стили для снипета */
.snippet-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #222222;
    border: 1px solid #444444;
    font-family: 'Courier New', 'Monaco', monospace;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snippet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2A2A2A;
    border-bottom: 1px solid #444444;
    flex-wrap: wrap;
    gap: 12px;
}

.snippet-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.snippet-language {
    background: transparent;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-icon {
    width: 16px;
    height: auto;
    color: #FFD93D;
}

.snippet-title {
    color: #FFD93D;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #E0E0E0;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

/* Полностью убираем обводку при клике/фокусе/активации */
.copy-btn:focus,
.copy-btn:focus-visible,
.copy-btn:active {
    outline: none;
    box-shadow: none;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.copy-btn.success {
    background: rgba(76, 175, 80, 0.2);
}

.snippet-content {
    overflow: auto;
    background: #1E1E1E;
    padding: 20px;
}

.snippet-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.snippet-content code {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .snippet-content code {
        font-size: 13px;
    }
    .language-icon {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .snippet-header {
        flex-direction: column;
        align-items: stretch;
    }
    .copy-btn {
        justify-content: center;
        width: 100%;
    }
    .language-icon {
        width: 10px;
    }
}

/* Скроллбар */
.snippet-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.snippet-content::-webkit-scrollbar-track {
    background: #1E1E1E;
}

.snippet-content::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 10px;
}

.snippet-content::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

/**
 * ================================================================
 * КРАСИВЫЕ СПИСКИ — КВАДРАТИКИ И ЦИФРЫ В КРУЖКАХ
 * ================================================================
 */

/* МАРКИРОВАННЫЕ СПИСКИ (UL) — цветной квадратик */
.entry-content ul:not([class]),
.entry-content ul.wp-block-list {
    padding-left: 0 !important;
    list-style: none !important;
}

.entry-content ul:not([class]) li,
.entry-content ul.wp-block-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.entry-content ul:not([class]) li::before,
.entry-content ul.wp-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #e04d4c;
    border-radius: 3px;
}

/* НУМЕРОВАННЫЕ СПИСКИ (OL) — цифра в кружке */
.entry-content ol:not([class]),
.entry-content ol.wp-block-list {
    padding-left: 0;
    list-style: none;
    counter-reset: custom-counter;
}

.entry-content ol:not([class]) li,
.entry-content ol.wp-block-list li {
    counter-increment: custom-counter;
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
}

.entry-content ol:not([class]) li::before,
.entry-content ol.wp-block-list li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: #e04d4c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/**
 * ================================================================
 * ФОРМА ОБРАТНОЙ СВЯЗИ — скругление полей 6px
 * ================================================================
 */

/* Поля ввода (text, email) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
}

/* Текстовое поле (textarea) */
.contact-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    resize: vertical !important;
    transition: border-color 0.2s ease !important;
}

/* Фокус на полях */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none !important;
    border-color: #e04d4c !important;
}

/* Кнопка отправки */
.contact-form button[type="submit"],
.contact-form .btn {
    padding: 10px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Отступы между полями */
.contact-form .contact-form__field {
    margin-bottom: 16px !important;
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

/**
 * ================================================================
 * КАРТА САЙТА (SITEMAP) — убираем подчеркивание ссылок
 * ================================================================
 */

/* Все ссылки в карте сайта */
.sitemap-list a {
    text-decoration: none !important;
}

/* Опционально: добавляем подчеркивание при наведении (если нужно) */
.sitemap-list a:hover {
    text-decoration: underline !important;
}

/**
 * ================================================================
 * ФОРМА КОММЕНТАРИЕВ — красивый стиль
 * Скругление 6px, убрано поле website
 * ================================================================
 */

/* Блок формы */
.comment-form {
    margin: 30px 0 !important;
}

/* Поля ввода */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Поле комментария */
.comment-form textarea {
    height: 120px !important;
    resize: vertical !important;
}

/* Фокус на полях */
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none !important;
    border-color: #e04d4c !important;
    box-shadow: 0 0 0 3px rgba(224, 77, 76, 0.1) !important;
}

/* Контейнеры полей */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin-bottom: 20px !important;
}

/* Скрываем поле website */
.comment-form-url {
    display: none !important;
}

/* Чекбокс */
.comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px 0 !important;
}

.comment-form-cookies-consent input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.comment-form-cookies-consent label {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    cursor: pointer !important;
}

/* Кнопка отправки */
.comment-form .form-submit {
    margin: 25px 0 0 !important;
}

.comment-form .submit {
    display: inline-block !important;
    padding: 10px 28px !important;
    background: #e04d4c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.comment-form .submit:hover {
    background: #c43d3c !important;
    transform: translateY(-1px) !important;
}

.comment-form .submit:active {
    transform: translateY(0px) !important;
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    .comment-form .submit {
        width: 100% !important;
        padding: 12px !important;
    }
}

/**
 * ================================================================
 * ТАБЛИЦЫ — компактный стиль
 * ================================================================
 */

.wp-block-table {
    margin: 1.5em 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.wp-block-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
}

.wp-block-table th,
.wp-block-table td {
    padding: 10px 14px !important;
    border: 1px solid #e9ecef !important;
    text-align: left !important;
}

.wp-block-table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
}

.wp-block-table tr:nth-child(even) {
    background: #fcfcfc !important;
}

/**
 * ================================================================
 * КАРТИНКИ — скругление углов 6px
 * ================================================================
 */

/* Все картинки в контенте */
.entry-content img,
.wp-block-image img {
    border-radius: 6px !important;
}

/* Картинки с оберткой figure */
.wp-block-image {
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* Изображения с микроразметкой */
figure[itemscope] img,
span[itemprop="image"] img {
    border-radius: 6px !important;
}

/**
 * ================================================================
 * ЦИТАТЫ (WP-BLOCK-QUOTE) — единый стиль
 * Фон: #CCCCCC, обводка: цветная 1px, скругление: 6px
 * Отступы: 15px со всех сторон
 * Без иконок
 * ================================================================
 */

/* Базовые стили для всех цитат */
.entry-content .wp-block-quote,
.home-text .wp-block-quote,
.taxonomy-description .wp-block-quote,
.wp-block-quote.is-style-default {
    background: #F6F6F6 !important;
    border-radius: 6px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

/* Убираем иконки */
.entry-content blockquote:before,
.home-text blockquote:before,
.taxonomy-description blockquote:before,
.entry-content .wp-block-quote:before,
.wp-block-quote.is-style-default:before {
    display: none !important;
    content: none !important;
}

/* Текст внутри цитаты */
.entry-content .wp-block-quote p,
.home-text .wp-block-quote p,
.taxonomy-description .wp-block-quote p,
.wp-block-quote.is-style-default p {
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    color: #222222 !important;
}

.entry-content .wp-block-quote p:last-child {
    margin-bottom: 0 !important;
}

/* ---------- ЦВЕТНАЯ ОБВОДКА ДЛЯ КАЖДОГО ТИПА ---------- */

/* Обычная цитата (по умолчанию) */
.entry-content .wp-block-quote,
.wp-block-quote.is-style-default {
    border: 1px solid #e04d4c !important;
}

/* Warning — предупреждение */
.entry-content .wp-block-quote.is-style-warning,
.entry-content blockquote.warning {
    border: 1px solid #f58128 !important;
}

/* Question — вопрос */
.entry-content .wp-block-quote.is-style-question,
.entry-content blockquote.question {
    border: 1px solid #3da2e0 !important;
}

/* Danger — опасность */
.entry-content .wp-block-quote.is-style-danger,
.entry-content blockquote.danger {
    border: 1px solid #ff6547 !important;
}

/* Check — галочка */
.entry-content .wp-block-quote.is-style-check,
.entry-content blockquote.check {
    border: 1px solid #34bc58 !important;
}

/* Info — информация */
.entry-content .wp-block-quote.is-style-info,
.entry-content blockquote.info {
    border: 1px solid #3da2e0 !important;
}

/* Thumbs up */
.entry-content .wp-block-quote.is-style-thumbs-up,
.entry-content blockquote.thumbs-up {
    border: 1px solid #34bc58 !important;
}

/* Thumbs down */
.entry-content .wp-block-quote.is-style-thumbs-down,
.entry-content blockquote.thumbs-down {
    border: 1px solid #ff6547 !important;
}

/* Quote — кавычка */
.entry-content .wp-block-quote.is-style-quote,
.entry-content blockquote.quote {
    border: 1px solid #9ca9c7 !important;
}

/* Plain — простая цитата */
.entry-content .wp-block-quote.is-style-plain {
    border: 1px solid #ced4da !important;
}

/* ---------- АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ---------- */
@media (max-width: 768px) {
    .entry-content .wp-block-quote,
    .home-text .wp-block-quote,
    .taxonomy-description .wp-block-quote,
    .wp-block-quote.is-style-default {
        padding: 12px !important;
    }
    
    .entry-content .wp-block-quote p {
        font-size: 14px !important;
    }
}

/**
 * ================================================================
 * ЗАГОЛОВОК НАД КНОПКАМИ КАТЕГОРИЙ
 * ================================================================
 */

/* Заголовок */
.post-category-buttons__title {
    font-size: 11px;
    color: #7F8C8D;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1px;
    text-align: left;
    width: 100%;
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .post-category-buttons__title {
        font-size: 11px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }
}

/**
 * ================================================================
 * КНОПКИ КАТЕГОРИЙ ВНУТРИ КОНТЕНТА (после первого абзаца)
 * ================================================================
 */

/* Контейнер кнопок */
.post-category-buttons--content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 25px 0;
}

/* Базовый стиль кнопки */
.post-category-buttons--content .post-card__category {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

/* Иконка внутри категории */
.post-category-buttons--content .post-card__category .cat-icon {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.post-category-buttons--content .post-card__category .cat-icon svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}

/* Hover эффект */
.post-category-buttons--content .post-card__category:hover {
    transform: translateY(-2px) !important;
    filter: brightness(0.95) !important;
}

/* ========== ЦВЕТА ДЛЯ КАЖДОЙ РУБРИКИ ========== */
.post-category-buttons--content .post-card__category[data-category-slug="chatgpt"] {
    background-color: #4DA770 !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="claude"] {
    background-color: #D97858 !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="deepseek"] {
    background-color: #4D6BFE !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="gemini"] {
    background: linear-gradient(135deg, #FF9500, #3789FF) !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="grok"] {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="midjourney"] {
    background-color: #344163 !important;
    color: #ffffff !important;
}

.post-category-buttons--content .post-card__category[data-category-slug="nano-banana"] {
    background-color: #E3BC1A !important;
    color: #1a1a1a !important;
}

/* Рубрика по умолчанию */
.post-category-buttons--content .post-card__category[data-category-slug="default"] {
    background: transparent !important;
    border: 1px solid #333333 !important;
    color: #333333 !important;
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .post-category-buttons--content .post-card__category {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    .post-category-buttons--content .post-card__category .cat-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* =====================================
 * УНИВЕРСАЛЬНЫЕ КАРТОЧКИ ИНСТРУМЕНТЫ AI
 * ===================================== */

/* ---------- СЕТКА ---------- */
.ai-apps-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ---------- КАРТОЧКА ---------- */
.ai-apps-card {
    display: flex !important;
    height: 100% !important;
    overflow: hidden !important;

    background: #fafafa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;

    color: var(--wp--preset--color--foreground, currentColor) !important;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}

.ai-apps-card:hover {
    border-color: #3b6bb6 !important;
    background: rgba(59, 107, 182, 0.06) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* ---------- ССЫЛКА ---------- */
.ai-apps-link {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;

    padding: 20px !important;

    color: inherit !important;
    text-decoration: none !important;
}

/* ---------- ИКОНКА + ЗАГОЛОВОК ---------- */
.ai-apps-icon-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* ---------- ИКОНКА ---------- */
.ai-apps-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;

    width: 40px !important;
    height: 40px !important;

    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px !important;

    transition: background 0.3s ease !important;
}

.ai-apps-card:hover .ai-apps-icon-wrap {
    background: rgba(59, 107, 182, 0.15) !important;
}

.ai-apps-icon-wrap img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

/* ---------- ЗАГОЛОВОК ---------- */
.ai-apps-name {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    margin: 0 !important;

    font-size: inherit !important;
    font-weight: 600 !important;

    color: inherit !important;
    text-decoration: none !important;

    transition: color 0.2s ease !important;
}

.ai-apps-card:hover .ai-apps-name {
    color: #3b6bb6 !important;
}

/* ---------- ОПИСАНИЕ ---------- */
.ai-apps-desc {
    margin: 0 !important;

    font-size: 0.9em !important;
    line-height: 1.5 !important;

    color: var(--wp--preset--color--foreground, #4D4D4D) !important;
    opacity: 0.8 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ---------- МОБИЛЬНЫЕ ---------- */
@media (max-width: 768px) {
    .ai-apps-grid {
        gap: 15px !important;
    }

    .ai-apps-link {
        padding: 16px !important;
    }

    .ai-apps-icon-wrap {
        width: 36px !important;
        height: 36px !important;
    }
}

/**
 * ================================================================
 * КАРТИНКА В ПОСТЕ — скругление 6px и тень Только для миниатюры поста
 * ================================================================
 */
 
 /**
 * Только миниатюра в начале поста
 */
.entry-image.post-card__thumbnail img {
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Закруглить углы кнопок подрубрик на странице рубрики */
.child-categories ul li a {
  border-radius: 6px;
}

/**
 * ================================================================
 * СТИЛЬ ДЛЯ ПАГИНАЦИИ
 * ================================================================
 */

/* Отступы для пагинации */
.nav-links {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    clear: both;
}

/**
 * ================================================================
 * ВЫРАВНИВАНИЕ CHILD-CATEGORIES ПО ЦЕНТРУ
 * ================================================================
 */

.child-categories {
    text-align: center;
    width: 100%;
}

.child-categories ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.child-categories ul li {
    margin: 0;
    padding: 0;
}

.child-categories ul li a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.child-categories ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .child-categories ul {
        gap: 8px;
    }
    
    .child-categories ul li a {
        padding: 4px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .child-categories ul li a {
        padding: 4px 10px;
        font-size: 11px;
        white-space: normal;
    }
}

/**
 * ================================================================
 * СТИЛИ ДЛЯ СТРАНИЦЫ ПРОМТОВ (отличаются от главной)
 * ================================================================
 */

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.prompts-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
}

/* ===== БЛОК КНОПОК КАТЕГОРИЙ ===== */
.prompts-categories {
    margin-bottom: 40px;
    width: 100%;
    overflow-x: auto;
}

.prompts-categories__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

/* Стили кнопок категорий */
.prompts-category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
}

.prompts-category-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Белые иконки */
.prompts-category-btn__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.prompts-category-btn__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff !important;
    white-space: nowrap;
}

/* Цвета кнопок категорий */
.prompts-category-btn[data-category-slug="chatgpt"] {
    background-color: #4DA770 !important;
}

.prompts-category-btn[data-category-slug="claude"] {
    background-color: #D97858 !important;
}

.prompts-category-btn[data-category-slug="deepseek"] {
    background-color: #4D6BFE !important;
}

.prompts-category-btn[data-category-slug="gemini"] {
    background: linear-gradient(135deg, #FF9500, #3789FF) !important;
}

.prompts-category-btn[data-category-slug="grok"] {
    background-color: #000000 !important;
}

.prompts-category-btn[data-category-slug="midjourney"] {
    background-color: #344163 !important;
}

.prompts-category-btn[data-category-slug="nano-banana"] {
    background-color: #E3BC1A !important;
}

/* ===== БЛОК ТЕГОВ ===== */
.prompts-tags {
    width: 100%;
    position: relative;
    margin: 0 0 20px 0;
}

.prompts-tags__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    padding: 4px 0 12px 0;
    width: 100%;
}

/* Стили тегов */
.prompts-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    white-space: nowrap;
    background: #ffffff;
    color: #555555 !important;
    flex-shrink: 0;
}

.prompts-tag:hover {
    background: #f5f5f7;
    border-color: #cccccc;
    transform: translateY(-1px);
}

/* Активный тег */
.prompts-tag--active,
.prompts-tag--active:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
}

/* Скрытые теги */
.prompts-tag--collapsed {
    display: none;
}

.prompts-tags__row.expanded .prompts-tag--collapsed {
    display: inline-flex;
}

/* Кнопка "Показать еще" */
.prompts-tag--toggle {
    background: transparent;
    border: 1px dashed #cccccc;
    color: #888888 !important;
    gap: 8px;
}

.prompts-tag--toggle:hover {
    background: #f5f5f7;
    border-color: #aaaaaa;
    border-style: solid;
    color: #555555 !important;
}

.prompts-tag__toggle-text {
    font-size: 13px;
}

.prompts-tag--toggle svg {
    transition: transform 0.2s ease;
}

.prompts-tags__row.expanded .prompts-tag--toggle svg {
    transform: rotate(45deg);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Большие экраны (992px и больше) - все кнопки в один ряд, резиновые */
@media (min-width: 992px) {
    .prompts-categories {
        overflow-x: visible;
    }
    
    .prompts-categories__grid {
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .prompts-category-btn {
        flex: 1 1 auto;
        min-width: 90px;
        padding: 12px 12px;
    }
    
    .prompts-category-btn__text {
        font-size: clamp(12px, 1.2vw, 14px);
    }
    
    .prompts-category-btn__icon {
        width: clamp(20px, 2vw, 24px);
        height: clamp(20px, 2vw, 24px);
    }
}

/* Планшеты и маленькие десктопы (от 769px до 991px) - кнопки переносятся, центрируются */
@media (min-width: 769px) and (max-width: 991px) {
    .prompts-categories__grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .prompts-category-btn {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 12px 16px;
    }
    
    .prompts-category-btn__text {
        display: inline-block;
        font-size: 13px;
    }
    
    .prompts-category-btn__icon {
        width: 24px;
        height: 24px;
    }
    
    .prompts-tags__row {
        justify-content: center;
    }
}

/* Мобильные (768px и меньше) - квадратные кнопки, только иконки */
@media (max-width: 768px) {
    .prompts-header {
        padding: 16px 16px 0 16px;
    }
    
    .prompts-categories {
        margin-bottom: 30px;
        overflow-x: visible;
    }
    
    .prompts-categories__grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .prompts-category-btn {
        flex-direction: column;
        flex: 0 0 auto;
        width: 70px;
        height: 70px;
        padding: 0;
        border-radius: 16px;
        aspect-ratio: 1 / 1;
    }
    
    .prompts-category-btn__icon {
        width: 32px;
        height: 32px;
    }
    
    .prompts-category-btn__text {
        display: none;
    }
    
    .prompts-tags__row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Мобильные (620px и меньше) - уменьшаем размер квадратов */
@media (max-width: 620px) {
    .prompts-category-btn {
        width: 65px;
        height: 65px;
        border-radius: 14px;
    }
    
    .prompts-category-btn__icon {
        width: 28px;
        height: 28px;
    }
}

/* Мобильные (480px и меньше) */
@media (max-width: 480px) {
    .prompts-header {
        padding: 12px 12px 0 12px;
    }
    
    .prompts-categories {
        margin-bottom: 24px;
    }
    
    .prompts-categories__grid {
        gap: 8px;
    }
    
    .prompts-category-btn {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    
    .prompts-category-btn__icon {
        width: 28px;
        height: 28px;
    }
    
    .prompts-tags__row {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .prompts-tag {
        padding: 5px 14px;
        font-size: 13px;
    }
}

/* Очень маленькие экраны (380px и меньше) */
@media (max-width: 380px) {
    .prompts-category-btn {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }
    
    .prompts-category-btn__icon {
        width: 24px;
        height: 24px;
    }
    
    .prompts-tag {
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* Десктоп (больше 1200px) */
@media (min-width: 1200px) {
    .prompts-category-btn {
        padding: 14px 20px;
        min-width: 110px;
    }
    
    .prompts-category-btn__icon {
        width: 26px;
        height: 26px;
    }
    
    .prompts-category-btn__text {
        font-size: 15px;
    }
    
    .prompts-categories__grid {
        gap: 15px;
    }
}

/* Очень большие экраны (больше 1600px) */
@media (min-width: 1600px) {
    .prompts-category-btn {
        padding: 14px 24px;
        min-width: 130px;
    }
    
    .prompts-category-btn__text {
        font-size: 16px;
    }
    
    .prompts-category-btn__icon {
        width: 28px;
        height: 28px;
    }
}