/*
 Theme Name: Newsmatic Child
 Template: newsmatic
 Author: Designe-R
 Description: Child theme with neon popup newsletter
 Version: 1.0
*/

/* ========== НАЧАЛО ВАШИХ СТИЛЕЙ ========== */

/* 1. Стили для карточек Content View */
.pt-cv-content-item {
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    background-color: #ffffff !important;
    position: relative !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.pt-cv-content-item:hover {
    border-color: #8b5cf6 !important;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15) !important;
    transform: translateY(-5px) !important;
}

/* 2. Стили для флагманской статьи */
.pt-cv-content-item.featured-article {
    border-width: 3px !important;
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    animation: subtle-pulse 3s ease-in-out infinite !important;
}

@keyframes subtle-pulse {
    0% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4); }
    100% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2); }
}

.pt-cv-content-item.featured-article::before {
    content: "🚀 ФЛАГМАНСКИЙ ГАЙД" !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: linear-gradient(90deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4) !important;
}

/* 3. Стили для вступительного текста */
.ai-trends-header {
    margin-bottom: 40px;
}

.ai-lead {
    font-size: 1.2em;
    line-height: 1.7;
    color: #4b5563;
    margin: 25px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-left: 4px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
}

.ai-levels {
    font-size: 1.1em;
    margin: 25px 0;
}

.ai-levels a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 10px 20px;
    background-color: #e0e7ff;
    color: #3730a3;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ai-levels a:hover {
    background-color: #3730a3;
    color: white;
    border-color: #3730a3;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(55, 48, 163, 0.2);
}

.ai-guarantee {
    text-align: center;
    color: #64748b;
    font-style: italic;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
}

/* ========== КОНЕЦ ВАШИХ СТИЛЕЙ ========== */


/* ========== ПОИСК В ШАПКЕ DESIGNRISE ========== */

.dr-header-search {
    width: 100%;
    max-width: 560px;
    margin-top: 12px;
}

.dr-header-search__form {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    background: #fff4f7;
    border: 1px solid #f3d6df;
    border-radius: 999px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dr-header-search__form:focus-within {
    border-color: #efc7d2;
    box-shadow: 0 0 0 2px rgba(230, 30, 77, 0.10);
}

.dr-header-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 46px;
    padding: 0;
    color: #8a7a80;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    cursor: pointer;
}

.dr-header-search__button:hover,
.dr-header-search__button:focus {
    color: #e61e4d;
    background: transparent !important;
}

.dr-header-search__field {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 14px 0 0 !important;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    line-height: 46px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.dr-header-search__field::placeholder {
    color: #9a8b90;
    opacity: 1;
}

/* Единый вид списка категорий в Chrome, Opera, Edge и Firefox */
#masthead .dr-header-search__category {
    flex: 0 0 auto;
    width: auto;
    max-width: 165px;
    height: 28px;
    margin: 0 14px 0 0 !important;
    padding: 0 32px 0 14px !important;
    color: #3a3336;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%233a3336' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 11px 7px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid #ebcfd8 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#masthead .dr-header-search__category:hover,
#masthead .dr-header-search__category:focus,
#masthead .dr-header-search__category:active {
    background-color: transparent !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid #ebcfd8 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Расположение поиска в шапке */
@media (min-width: 769px) {
    #masthead {
        position: relative;
    }

    #masthead > .dr-header-search {
        position: absolute;
        top: 100px;
        left: 16%;
        width: 23%;
        max-width: 490px;
        margin: 0;
        z-index: 50;
    }
}

/* На телефоне дополнительный поиск не показываем */
@media (max-width: 768px) {
    #masthead > .dr-header-search {
        display: none;
    }
}

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

/* =========================================================
   DESIGNRISE AI — HOMEPAGE HERO
   ========================================================= */

.dr-ai-section {
    width: 100%;
    margin: 0;
    padding: 14px 0 12px;
    background: #f1f2f4;
}

.dr-ai-section .newsmatic-container {
    width: 100%;
}

.dr-ai-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 245px;
    padding: 28px 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 9% 40%, rgba(250, 15, 70, 0.09), transparent 23%),
        radial-gradient(circle at 90% 25%, rgba(250, 15, 70, 0.05), transparent 27%),
        linear-gradient(135deg, #fff8fa 0%, #ffffff 55%, #fff7f9 100%);
    border: 1px solid #f1d9e1;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(20, 20, 20, 0.025);
}

.dr-ai-hero::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 170px;
    background-image: radial-gradient(rgba(250, 15, 70, 0.18) 1px, transparent 1px);
    background-size: 9px 9px;
    opacity: 0.55;
    pointer-events: none;
}

.dr-ai-hero::after {
    content: "✦";
    position: absolute;
    top: 26px;
    right: 25%;
    color: #fa0f46;
    font-size: 22px;
    line-height: 1;
    opacity: 0.9;
    pointer-events: none;
}

/* AI icon */
.dr-ai-decoration {
    position: relative;
    z-index: 2;
    flex: 0 0 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
}

.dr-ai-decoration::before,
.dr-ai-decoration::after {
    content: "✦";
    position: absolute;
    color: #fa0f46;
    line-height: 1;
}

.dr-ai-decoration::before {
    top: 13px;
    right: 12px;
    font-size: 18px;
}

.dr-ai-decoration::after {
    left: 9px;
    bottom: 18px;
    font-size: 13px;
}

.dr-ai-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 106px;
    height: 106px;
    border-radius: 27px;
    color: #fff;
    background: linear-gradient(145deg, #ff3569 0%, #ee0b4b 55%, #c90039 100%);
    box-shadow:
        0 18px 34px rgba(231, 10, 73, 0.22),
        inset 0 1px 1px rgba(255,255,255,0.55),
        inset 0 -7px 14px rgba(139,0,38,0.13);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    transform: rotate(-8deg);
}

.dr-ai-badge::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 21px;
}

/* Content */
.dr-ai-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
}

.dr-ai-title {
    margin: 0 0 5px !important;
    color: #171717 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(31px, 2.5vw, 39px) !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -0.5px;
}

.dr-ai-subtitle {
    margin: 0 0 18px !important;
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

/* Search / chat field */
.dr-ai-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    margin: 0 auto;
    overflow: visible;
    background: #fff;
    border: 1.5px solid #fa0f46;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(39, 15, 24, 0.055);
}

.dr-ai-search input,
#dr-ai-question {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 70px 0 55px !important;
    color: #222 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 58px !important;
}

.dr-ai-search input:focus,
#dr-ai-question:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.dr-ai-search input::placeholder,
#dr-ai-question::placeholder {
    color: #929292 !important;
    opacity: 1;
}

.dr-ai-chat-icon {
    position: absolute;
    left: 21px;
    top: 50%;
    z-index: 3;
    color: #fa0f46;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.dr-ai-send {
    position: absolute !important;
    top: 50%;
    right: 9px;
    z-index: 4;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: #fa0f46 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 14px rgba(250, 15, 70, 0.24) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dr-ai-send:hover,
.dr-ai-send:focus {
    color: #fff !important;
    background: #dd0b40 !important;
    box-shadow: 0 7px 18px rgba(250, 15, 70, 0.28) !important;
    transform: translateY(-50%) scale(1.05);
}

/* Quick topics */
.dr-ai-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
}

.dr-ai-topics button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    margin: 0 !important;
    padding: 8px 16px !important;
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.035) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dr-ai-topics button:hover,
.dr-ai-topics button:focus {
    color: #fa0f46 !important;
    background: #fff !important;
    border-color: #fa0f46 !important;
    box-shadow: 0 5px 14px rgba(250, 15, 70, 0.08) !important;
    transform: translateY(-1px);
}

.dr-ai-example {
    margin-top: 12px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

/* Make the section sit neatly above the theme headline strip */
.dr-ai-section + * {
    margin-top: 0;
}

/* Tablet */
@media (max-width: 1100px) {
    .dr-ai-hero {
        gap: 20px;
        padding: 26px 28px;
    }

    .dr-ai-decoration {
        flex-basis: 125px;
        min-width: 125px;
    }

    .dr-ai-badge {
        width: 88px;
        height: 88px;
        border-radius: 23px;
        font-size: 35px;
    }

    .dr-ai-topics {
        gap: 7px;
    }

    .dr-ai-topics button {
        padding: 8px 13px !important;
        font-size: 12px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dr-ai-section {
        padding: 10px 0;
    }

    .dr-ai-hero {
        display: block;
        min-height: 0;
        padding: 24px 16px 22px;
        border-radius: 13px;
    }

    .dr-ai-hero::after {
        top: 18px;
        right: 18px;
        font-size: 16px;
    }

    .dr-ai-decoration {
        width: 100%;
        min-width: 0;
        margin: 0 0 14px;
    }

    .dr-ai-badge {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 28px;
    }

    .dr-ai-title {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    .dr-ai-subtitle {
        margin-bottom: 15px !important;
        font-size: 13px !important;
    }

    .dr-ai-search {
        min-height: 54px;
    }

    .dr-ai-search input,
    #dr-ai-question {
        height: 52px !important;
        padding: 0 58px 0 44px !important;
        font-size: 13px !important;
        line-height: 52px !important;
    }

    .dr-ai-chat-icon {
        left: 15px;
        font-size: 22px;
    }

    .dr-ai-send {
        right: 7px;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .dr-ai-topics {
        gap: 7px;
        margin-top: 12px;
    }

    .dr-ai-topics button {
        min-height: 34px;
        padding: 7px 11px !important;
        font-size: 11.5px !important;
    }

    .dr-ai-example {
        margin-top: 11px;
        font-size: 11px;
    }
}

