/*
Theme Name: Popcake Dune
Theme URI: https://popcake.news
Author: Popcake Studio
Author URI: https://popcake.news
Description: РЎРѕРІСЂРµРјРµРЅРЅР°СЏ С‚РµРјР° РґР»СЏ Popcake РЅР° Р±Р°Р·Рµ Tailwind CSS. Р­СЃС‚РµС‚РёРєР° СЃРѕРІСЂРµРјРµРЅРЅРѕР№ РїРѕРї-РєСѓР»СЊС‚СѓСЂС‹.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://popcake.news/terms
Text Domain: popcake
Tags: news, magazine, modern
*/

body {
    -webkit-font-smoothing: antialiased;
    background-color: #ffffff;
    color: #0f172a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

::selection {
    background-color: #eae2f8;
    color: #1e293b;
}

/* РЈР±РёСЂР°РµРј СЃРєСЂРѕР»Р»Р±Р°СЂ РґР»СЏ РіРѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹С… СЃРїРёСЃРєРѕРІ (Reels / Shorts) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* РЎС‚РёР»РёР·Р°С†РёСЏ РїР°РіРёРЅР°С†РёРё WordPress РїРѕРґ РѕР±С‰РёР№ РґРёР·Р°Р№РЅ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.pagination .page-numbers.current {
    background-color: #8564b5;
    color: #ffffff;
    border-color: #8564b5;
}

/* РЎС‚РёР»РёР·Р°С†РёСЏ РєРѕРЅС‚РµРЅС‚Р° СЃС‚Р°С‚СЊРё РІ single.php (Prose override) */
.entry-content p {
    margin-bottom: 1.625rem;
    /* ~26px - С‡РµС‚РєРёР№, Р·Р°РјРµС‚РЅС‹Р№ РѕС‚СЃС‚СѓРї РјРµР¶РґСѓ Р°Р±Р·Р°С†Р°РјРё РґР»СЏ РІРѕР·РґСѓС…Р° */
    line-height: 1.65;
    /* РљРѕРјС„РѕСЂС‚РЅС‹Р№ РјРµР¶СЃС‚СЂРѕС‡РЅС‹Р№ РёРЅС‚РµСЂРІР°Р» РґР»СЏ С‡С‚РµРЅРёСЏ СЌРєСЂР°РЅР° */
    font-size: 1.125rem;
    /* 18px */
    color: #334155;
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-top: 3.25rem !important;
    /* ~52px (С‡РµС‚РєРѕРµ Р·Р°РІРµСЂС€РµРЅРёРµ РјС‹СЃР»Рё Рё РїСЂРёРІСЏР·РєР° Рє С‚РµРєСЃС‚Сѓ СЃРЅРёР·Сѓ) */
    margin-bottom: 0.875rem !important;
    /* ~14px (РїСЂРёР»РёРїР°РЅРёРµ Рє С‚РµРєСЃС‚Сѓ) */
    color: #0f172a;
    scroll-margin-top: 6rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.25rem !important;
    /* ~36px */
    margin-bottom: 0.75rem !important;
    /* ~12px */
    color: #0f172a;
    scroll-margin-top: 6rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.125rem;
    color: #334155;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content li::marker {
    color: #8564b5;
    font-weight: bold;
}

.entry-content blockquote {
    position: relative;
    background-color: #f8fafc;
    border-left: 4px solid #8564b5;
    border-radius: 0 1rem 1rem 0;
    padding: 1.75rem 2rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1e293b;
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: 12px;
    margin: 2.5rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.entry-content figure,
.entry-content .wp-caption,
.entry-content .wp-block-image {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    /* 40px РґРѕ СЃР»РµРґСѓСЋС‰РµРіРѕ Р°Р±Р·Р°С†Р° */
    max-width: 100%;
}

.entry-content figure img,
.entry-content .wp-caption img,
.entry-content .wp-block-image img {
    margin: 0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    margin-top: 0.875rem !important;
    /* 14px (РѕС‚ С„РѕС‚Рѕ РґРѕ РїРѕРґРїРёСЃРё) */
    margin-bottom: 2.5rem !important;
    /* 40px (РїРѕСЃР»Рµ РїРѕРґРїРёСЃРё РґРѕ СЃР»РµРґСѓСЋС‰РµРіРѕ С‚РµРєСЃС‚Р°) */
    font-size: 0.8125rem !important;
    /* 13px */
    font-weight: 500 !important;
    color: #94a3b8 !important;
    /* text-slate-400 */
    font-style: normal !important;
    line-height: 1.5;
    text-align: left !important;
    padding: 0 0.25rem;
}


.entry-content a {
    color: #8564b5;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: #6366f1;
}

.entry-content table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.entry-content th {
    background-color: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.entry-content td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

/* --- РћРіР»Р°РІР»РµРЅРёРµ (Table of Contents) --- */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.toc-list a {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    padding-left: 0.75rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover {
    color: #0f172a;
    border-left-color: #cbd5e1;
}

.toc-list a.active {
    color: #8564b5;
    border-left-color: #8564b5;
    font-weight: 700;
}

.toc-list .toc-subitem {
    padding-left: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* --- РљРЅРѕРїРєРё С€Р°СЂРёРЅРіР° (РРєРѕРЅРєРё СЃ Р°РЅРёРјР°С†РёРµР№ Р±СѓРјР°Р¶РЅРѕРіРѕ С…Р°Р№Р»Р°Р№С‚Р° РІ СЃС‚РёР»Рµ РјРµРЅСЋ) --- */
.share-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    width: 2.75rem;
    /* 44px */
    height: 2.75rem;
    /* 44px */
    border-radius: 0.875rem;
    /* 14px */
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    /* Р§РёСЃС‚С‹Р№ Р±РµР»С‹Р№ С„РѕРЅ РґР»СЏ РєРѕРЅС‚СЂР°СЃС‚Р° Р±РµР· РЅР°РІРµРґРµРЅРёСЏ */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    /* Р§С‚РѕР±С‹ Р°РЅРёРјР°С†РёСЏ Р·Р°Р»РёРІРєРё РЅРµ РІС‹С…РѕРґРёР»Р° Р·Р° СЃРєСЂСѓРіР»РµРЅРёСЏ */
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Р—РђРџР Р•Рў РЅР° РїСЂС‹Р¶РєРё Рё СѓРІРµР»РёС‡РµРЅРёРµ СЃР°РјРѕР№ РєРЅРѕРїРєРё РїСЂРё hover */
.share-pill:hover {
    transform: none !important;
    border-color: transparent;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.1);
}

/* РќРµР№С‚СЂР°Р»СЊРЅС‹Р№, СЃС‚СЂРѕРіРёР№ С‚С‘РјРЅС‹Р№ СЃР»РµР№С‚ Р±РµР· РЅР°РІРµРґРµРЅРёСЏ (С‡С‚РѕР±С‹ РЅРµ РѕС‚РІР»РµРєР°С‚СЊ РѕС‚ РєРѕРЅС‚РµРЅС‚Р° РґРѕ РЅР°РІРµРґРµРЅРёСЏ РєСѓСЂСЃРѕСЂР°) */
.share-pill.vk,
.share-pill.tg,
.share-pill.copy {
    color: #1e293b;
}

/* Р Р°Р·РјРµСЂС‹ Рё РїРѕРІРµРґРµРЅРёРµ SVG РґР»СЏ VK Рё Telegram (СЃРїР»РѕС€РЅР°СЏ Р·Р°Р»РёРІРєР°) */
.share-pill.vk svg,
.share-pill.tg svg {
    width: 1.375rem !important;
    /* 22px РґР»СЏ VK Рё Telegram */
    height: 1.375rem !important;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    fill: currentColor;
    transition: color 0.3s ease, fill 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* РљР РРўРР§РќРћ: Р Р°Р·РјРµСЂС‹ Рё РїРѕРІРµРґРµРЅРёРµ РґР»СЏ РёРєРѕРЅРєРё СЃСЃС‹Р»РєРё (СЃС‚СЂРѕРіРѕ Р»РёРЅРёРё Р±РµР· fill, РёРЅР°С‡Рµ РїСЂРµРІСЂР°С‰Р°РµС‚СЃСЏ РІ РєР»СЏРєСЃСѓ!) */
.share-pill.copy svg,
.share-pill.copy i {
    width: 1.125rem !important;
    /* 18px РґР»СЏ РёРєРѕРЅРєРё СЃСЃС‹Р»РєРё */
    height: 1.125rem !important;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    fill: none !important;
    /* РћС‚РєР»СЋС‡Р°РµРј Р·Р°Р»РёРІРєСѓ РІРЅСѓС‚СЂРµРЅРЅРёС… РѕС‚РІРµСЂСЃС‚РёР№ С†РµРїРё */
    stroke: currentColor !important;
    stroke-width: 2.25px !important;
    transition: color 0.3s ease, stroke 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- РђРќРРњРђР¦РРЇ РҐРђР™Р›РђР™РўРђ Р’ Р”РЈРҐР• РњР•РќР® (Realistic Paper Highlighter) --- */
.share-pill::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 0.75rem;
    transform: rotate(-2deg) skewX(-12deg);
    clip-path: inset(0 100% 0 0);
    /* РЎРєСЂС‹С‚ СЃРїСЂР°РІР° РЅР°Р»РµРІРѕ РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ */
    transition: clip-path 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.share-pill:hover::before {
    clip-path: inset(0 0% 0 0);
    /* РџР»Р°РІРЅС‹Р№ С€С‚СЂРёС…-Р·Р°Р»РёРІРєР° РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}

/* Р¦РІРµС‚Р° С…Р°Р№Р»Р°Р№С‚Р° РґР»СЏ РєР°Р¶РґРѕР№ СЃРѕС†СЃРµС‚Рё */
.share-pill.vk::before {
    background-color: #0077FF;
}

.share-pill.tg::before {
    background-color: #29A9EA;
}

.share-pill.copy::before {
    background-color: #8564b5;
}

/* РЎРјРµРЅР° С†РІРµС‚Р° Рё Р»РµРіРєРёР№ РїРѕРІРѕСЂРѕС‚ РёРєРѕРЅРєРё РїСЂРё РЅР°РІРµРґРµРЅРёРё РЅР° С€С‚СЂРёС… */
.share-pill.vk:hover svg,
.share-pill.tg:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    transform: scale(1.1) rotate(-6deg);
}

.share-pill.copy:hover svg,
.share-pill.copy:hover i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    transform: scale(1.1) rotate(-6deg);
}

/* --- РђРљРўРР’РќРћР• РЎРћРЎРўРћРЇРќРР• РЈРЎРџР•РЁРќРћР“Рћ РљРћРџРР РћР’РђРќРРЇ (СЃ Р°РЅРёРјР°С†РёРµР№ РіР°Р»РѕС‡РєРё) --- */
.share-pill.copy.copied-active::before {
    clip-path: inset(0 0% 0 0) !important;
    background-color: #10b981 !important;
    /* РР·СѓРјСЂСѓРґРЅС‹Р№ С†РІРµС‚ СѓСЃРїРµС…Р° */
}

.share-pill.copy.copied-active svg,
.share-pill.copy.copied-active i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    fill: none !important;
    animation: popcakeCopyPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes popcakeCopyPop {
    0% {
        transform: scale(0.3) rotate(-25deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.3) rotate(8deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* =========================================
   Р–РР’РћР™ Р‘РЈРњРђР–РќР«Р™ РҐРђР™Р›РђР™Рў (REALISTIC PAPER HIGHLIGHTER)
   ========================================= */

#main-nav .menu-item>a,
#main-nav div>a,
#mobile-menu .menu-item>a,
#mobile-menu div>a {
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

/* Р‘Р°Р·РѕРІР°СЏ С„РѕСЂРјР° С€РёСЂРѕРєРѕРіРѕ РјР°СЂРєРµСЂР°-С€С‚СЂРёС…Р° РґР»СЏ РІСЃРµС… РїСѓРЅРєС‚РѕРІ РјРµРЅСЋ */
#main-nav .menu-item>a::before,
#main-nav div>a::before,
#mobile-menu .menu-item>a::before,
#mobile-menu div>a::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -10px;
    right: -10px;
    top: -4px;
    bottom: -4px;
    border-radius: 2px 10px 1px 12px;
    /* Р§РµС‚РєРёРµ, РїРѕС‡С‚Рё РѕСЃС‚СЂС‹Рµ РєСЂР°СЏ СЃРѕ СЃРєРѕСЃРѕРј РїРѕРґ С€РёСЂРѕРєРёР№ РјР°СЂРєРµСЂ */
    transform: rotate(-1.2deg) skewX(-14deg);
    /* Р¤РѕСЂРјР° РЈР–Р• РёС‚РѕРіРѕРІР°СЏ, РЅРµ РёСЃРєР°Р¶Р°РµС‚СЃСЏ РїСЂРё Р°РЅРёРјР°С†РёРё */
    clip-path: inset(0 100% 0 0);
    /* РЎРєСЂС‹РІР°РµРј СЃРїСЂР°РІР° РЅР°Р»РµРІРѕ Р±РµР· РґРµС„РѕСЂРјР°С†РёРё РєСЂР°РµРІ */
    transition: clip-path 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

/* РџСЂРѕСЏРІР»РµРЅРёРµ С€С‚СЂРёС…Р° РїСЂРё РЅР°РІРµРґРµРЅРёРё РёР»Рё Р°РєС‚РёРІР°С†РёРё (РґР»СЏ Р»СЋР±С‹С… РїСѓРЅРєС‚РѕРІ) */
#main-nav .menu-item>a:hover::before,
#main-nav div>a:hover::before,
#main-nav .menu-item.current-menu-item>a::before,
#main-nav .menu-item.popcake-active-item>a::before,
#main-nav .menu-item.current-category-ancestor>a::before,
#main-nav div>a.popcake-active-item::before,
#mobile-menu .menu-item>a:hover::before,
#mobile-menu div>a:hover::before,
#mobile-menu .menu-item.current-menu-item>a::before,
#mobile-menu .menu-item.popcake-active-item>a::before,
#mobile-menu .menu-item.current-category-ancestor>a::before,
#mobile-menu div>a.popcake-active-item::before {
    clip-path: inset(0 0% 0 0);
}

/* =====================================================
   РЈРњРќР«Р™ РџРђРЎРўР•Р›Р¬РќР«Р™ РњРЈР›Р¬РўРРљРћР›РћР  (CURATED PASTEL PALETTE)
   (РљР»Р°СЃСЃС‹ .popcake-color-* РіРµРЅРµСЂРёСЂСѓСЋС‚СЃСЏ РґРёРЅР°РјРёС‡РµСЃРєРё С‡РµСЂРµР· wp_head РёР· СЂРµРµСЃС‚СЂР° 12 С†РІРµС‚РѕРІ)
   ===================================================== */

/* Р”РµС„РѕР»С‚РЅС‹Р№ С„РѕР»Р»Р±РµРє (РґР»СЏ РїСѓРЅРєС‚РѕРІ Р±РµР· РєР»Р°СЃСЃР° С†РІРµС‚Р°) */
#main-nav .menu-item:not([class*="popcake-color-"])>a::before,
#main-nav div>a:not([class*="popcake-color-"])::before,
#mobile-menu .menu-item:not([class*="popcake-color-"])>a::before,
#mobile-menu div>a:not([class*="popcake-color-"])::before {
    background-color: #eae2f8;
}

#main-nav .menu-item:not([class*="popcake-color-"]).current-menu-item>a::before,
#main-nav .menu-item:not([class*="popcake-color-"]).popcake-active-item>a::before,
#main-nav div>a:not([class*="popcake-color-"]).popcake-active-item::before,
#mobile-menu .menu-item:not([class*="popcake-color-"]).current-menu-item>a::before,
#mobile-menu .menu-item:not([class*="popcake-color-"]).popcake-active-item>a::before,
#mobile-menu div>a:not([class*="popcake-color-"]).popcake-active-item::before {
    background-color: #dfcefa;
}

#main-nav .menu-item:not([class*="popcake-color-"])>a:hover,
#main-nav .menu-item:not([class*="popcake-color-"]).current-menu-item>a,
#main-nav .menu-item:not([class*="popcake-color-"]).popcake-active-item>a,
#main-nav div>a:not([class*="popcake-color-"]):hover,
#main-nav div>a:not([class*="popcake-color-"]).popcake-active-item,
#mobile-menu .menu-item:not([class*="popcake-color-"])>a:hover,
#mobile-menu .menu-item:not([class*="popcake-color-"]).current-menu-item>a,
#mobile-menu .menu-item:not([class*="popcake-color-"]).popcake-active-item>a,
#mobile-menu div>a:not([class*="popcake-color-"]):hover,
#mobile-menu div>a:not([class*="popcake-color-"]).popcake-active-item {
    color: #4c1d95 !important;
}

/* =========================================
   РЎРўРР›Р Р’РР”Р–Р•РўРћР’ Р РЎРђР™Р”Р‘РђР Рђ
   ========================================= */

.sidebar-widgets .widget,
.widget-area .widget {
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.sidebar-widgets .widget:hover,
.widget-area .widget:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background-color: #8564b5;
    border-radius: 4px;
}

/* РЎС‚РёР»РёР·Р°С†РёСЏ РїРѕРёСЃРєР° (СЃС‚Р°РЅРґР°СЂС‚РЅС‹Р№ Рё Р±Р»РѕС‡РЅС‹Р№ Gutenberg) */
.widget_search form,
.wp-block-search {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.widget_search input[type="search"],
.widget_search input[type="text"],
.wp-block-search__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}

.widget_search input[type="search"]:focus,
.widget_search input[type="text"]:focus,
.wp-block-search__input:focus {
    border-color: #8564b5;
    box-shadow: 0 0 0 3px rgba(133, 100, 181, 0.1);
}

.widget_search input[type="submit"],
.widget_search button,
.wp-block-search__button {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.widget_search input[type="submit"]:hover,
.widget_search button:hover,
.wp-block-search__button:hover {
    background-color: #8564b5;
}

/* РЎРїРёСЃРєРё РІРёРґР¶РµС‚РѕРІ (Р СѓР±СЂРёРєРё, РЎРІРµР¶РёРµ Р·Р°РїРёСЃРё, РђСЂС…РёРІС‹) */
.widget_categories ul,
.widget_archive ul,
.widget_recent_entries ul,
.widget_pages ul,
.widget_meta ul,
.wp-block-categories,
.wp-block-archives,
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.widget_categories li,
.widget_archive li,
.widget_recent_entries li,
.widget_pages li,
.widget_meta li,
.wp-block-categories li,
.wp-block-archives li,
.wp-block-latest-posts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.625rem;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.widget_categories li:last-child,
.widget_archive li:last-child,
.widget_recent_entries li:last-child,
.widget_pages li:last-child,
.widget_meta li:last-child,
.wp-block-categories li:last-child,
.wp-block-archives li:last-child,
.wp-block-latest-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget_categories a,
.widget_archive a,
.widget_recent_entries a,
.widget_pages a,
.widget_meta a,
.wp-block-categories a,
.wp-block-archives a,
.wp-block-latest-posts a {
    color: #334155;
    transition: color 0.2s;
}

.widget_categories a:hover,
.widget_archive a:hover,
.widget_recent_entries a:hover,
.widget_pages a:hover,
.widget_meta a:hover,
.wp-block-categories a:hover,
.wp-block-archives a:hover,
.wp-block-latest-posts a:hover {
    color: #8564b5;
}

/* РЎС‡РµС‚С‡РёРє РєРѕР»РёС‡РµСЃС‚РІР° Р·Р°РїРёСЃРµР№ РІ СЃРєРѕР±РєР°С… Сѓ РєР°С‚РµРіРѕСЂРёР№ Рё Р°СЂС…РёРІРѕРІ */
.widget_categories li span,
.widget_archive li span {
    background-color: #d8c9f2;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* РћР±Р»Р°РєРѕ С‚РµРіРѕРІ (Tag Cloud) */
.widget_tag_cloud .tagcloud,
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud a,
.wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.75rem !important;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    text-decoration: none;
}

.widget_tag_cloud a:hover,
.wp-block-tag-cloud a:hover {
    background-color: #8564b5;
    border-color: #8564b5;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================
   РЎРўРР›Р Р¤РЈРўР•Р Рђ (РёР· Popcake 2)
   ========================================= */

.footer-system::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulse 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* РЎС‚РёР»Рё РґР»СЏ СЃСЃС‹Р»РѕРє РІРЅСѓС‚СЂРё РјРµРЅСЋ С„СѓС‚РµСЂР°, СЃРіРµРЅРµСЂРёСЂРѕРІР°РЅРЅС‹С… WordPress */
.footer-tw-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer-tw-menu a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.footer-tw-menu a:hover {
    color: #6366f1;
    transform: translateX(6px);
}

/* =========================================
   РРќРўР•Р“Р РђР¦РРЇ РЎ WORDPRESS ADMIN BAR (WPADMINBAR)
   ========================================= */

/* Р”РµСЃРєС‚РѕРї Рё РїР»Р°РЅС€РµС‚С‹ РѕС‚ 783px (РІС‹СЃРѕС‚Р° Р°РґРјРёРЅ-Р±Р°СЂР° 32px) */
@media screen and (min-width: 783px) {
    body.admin-bar #main-nav {
        top: 32px !important;
    }

    body.admin-bar aside .sticky.top-28 {
        top: calc(7rem + 32px) !important;
    }

    body.admin-bar #mobile-menu {
        top: 32px !important;
    }
}

/* РњРѕР±РёР»СЊРЅС‹Рµ СѓСЃС‚СЂРѕР№СЃС‚РІР° РґРѕ 782px (РІС‹СЃРѕС‚Р° Р°РґРјРёРЅ-Р±Р°СЂР° 46px) */
@media screen and (max-width: 782px) {
    body.admin-bar #main-nav {
        top: 46px !important;
    }

    body.admin-bar aside .sticky.top-28 {
        top: calc(7rem + 46px) !important;
    }

    body.admin-bar #mobile-menu {
        top: 46px !important;
    }
}

/* --- РРЅС‚РµСЂР°РєС‚РёРІРЅС‹Рµ СЂРµР°РєС†РёРё (Telegram Style) --- */
.reaction-pill {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 76px;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media screen and (min-width: 640px) {
    .reaction-pill {
        min-width: 84px;
    }
}

/* РџР»Р°РІРЅРѕРµ РїРѕСЏРІР»РµРЅРёРµ/РёСЃС‡РµР·РЅРѕРІРµРЅРёРµ С†РёС„СЂС‹ РїСЂРё 0 <-> 1 (Apple / Telegram Style) */
.reaction-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 55px;
    opacity: 1;
    margin-left: 0.5rem;
    transform: translateX(0) scale(1);
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease-in-out,
        margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media screen and (min-width: 640px) {
    .reaction-pill__count:not(.count-hidden) {
        margin-left: 0.625rem;
    }
}

.reaction-pill__count.count-hidden {
    max-width: 0 !important;
    opacity: 0 !important;
    margin-left: 0 !important;
    transform: translateX(-14px) scale(0.4) !important;
    pointer-events: none;
}


.reaction-pill.active {
    background-color: rgba(133, 100, 181, 0.12) !important;
    border-color: #8564b5 !important;
    color: #8564b5 !important;
    box-shadow: 0 4px 12px -2px rgba(133, 100, 181, 0.2);
}

.reaction-pill.active .reaction-pill__count {
    color: #8564b5 !important;
}

/* Р­С„С„РµРєС‚ РїСЂСѓР¶РёРЅРЅРѕРіРѕ РѕС‚СЃРєРѕРєР° (Pop) РїСЂРё РєР»РёРєРµ */
@keyframes telegramReactionPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.35) rotate(-6deg);
    }

    50% {
        transform: scale(0.85) rotate(4deg);
    }

    75% {
        transform: scale(1.1) rotate(-2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.reaction-pop-active .reaction-pill__emoji {
    animation: telegramReactionPop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Р­С„С„РµРєС‚ РІСЃРїР»С‹РІР°СЋС‰РёС… Рё СЂР°Р·Р»РµС‚Р°СЋС‰РёС…СЃСЏ РјРёРєСЂРѕ-С‡Р°СЃС‚РёС† РІ РЅРµСЃРєРѕР»СЊРєРёС… С‚СЂР°РµРєС‚РѕСЂРёСЏС… (Telegram Style) */
@keyframes reactionParticleBurst {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
        opacity: 1;
    }

    65% {
        opacity: 0.9;
    }

    100% {
        transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -65px))) scale(var(--ts, 1.3)) rotate(var(--tr, 0deg));
        opacity: 0;
    }
}

.reaction-particle {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    font-size: 1.15rem;
    opacity: 0;
    animation: reactionParticleBurst 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* РСЃРїСЂР°РІР»РµРЅРёРµ РѕР±СЂРµР·РєРё РїСЂР°РІРѕРіРѕ РєСЂР°СЏ Рё РґСЂРѕР±РЅРѕР№ С€РёСЂРёРЅС‹ РІ iframe РєРѕРјРјРµРЅС‚Р°СЂРёРµРІ Р’РљРѕРЅС‚Р°РєС‚Рµ */
#vk_comments {
    width: 100%;
    overflow-x: hidden;
}

#vk_comments iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================
   TELEGRAM SPOILER EFFECT (Р¤СѓС‚РµСЂ)
   ========================================= */
.tg-spoiler-text {
    color: transparent !important;
    /* РЈР»СЊС‚РёРјР°С‚РёРІРЅРѕ СЃРєСЂС‹РІР°РµРј С‚РµРєСЃС‚ РѕС‚ Tailwind */
    background-color: rgba(148, 163, 184, 0.1);
    /* Р›С‘РіРєР°СЏ РїРѕРґР»РѕР¶РєР° 0.1 */
    /* РР·РѕР»РёСЂРѕРІР°РЅРЅС‹Рµ, СЂРµРґРєРёРµ С‡Р°СЃС‚РёС†С‹ С†РІРµС‚Р° С‚РµРєСЃС‚Р° (#94A3B8), СѓРІРµР»РёС‡РµРЅРЅС‹Р№ РјР°СЃС€С‚Р°Р± */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.58 0 0 0 0 0.64 0 0 0 0 0.72 0 0 0 20 -12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.8'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    /* РЈР»СЊС‚СЂР°-Р·Р°РјРµРґР»РµРЅРЅР°СЏ Р°РЅРёРјР°С†РёСЏ С€СѓРјР° (РІ 2 СЂР°Р·Р° РјРµРґР»РµРЅРЅРµРµ) */
    animation: tg-noise 1.8s steps(1) infinite;
    padding: 0 2px;
}

/* 10 РєР°РґСЂРѕРІ СЃР»СѓС‡Р°Р№РЅРѕРіРѕ СЃРјРµС‰РµРЅРёСЏ РґР»СЏ СЌС„С„РµРєС‚Р° С…Р°РѕСЃР° */
@keyframes tg-noise {

    0%,
    100% {
        background-position: 0px 0px;
    }

    10% {
        background-position: -15px -20px;
    }

    20% {
        background-position: 25px 10px;
    }

    30% {
        background-position: -10px 35px;
    }

    40% {
        background-position: 20px -15px;
    }

    50% {
        background-position: -30px 25px;
    }

    60% {
        background-position: 15px 40px;
    }

    70% {
        background-position: -20px -30px;
    }

    80% {
        background-position: 35px 15px;
    }

    90% {
        background-position: -15px 30px;
    }
}

.tg-spoiler-text.is-revealed {
    color: #94A3B8 !important;
    background-color: transparent;
    background-image: none;
    animation: none;
    user-select: text;
    -webkit-user-select: text;
    padding: 0;
}

/* =========================================
   PAGINATION (РџР°РіРёРЅР°С†РёСЏ)
   ========================================= */

.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination .screen-reader-text {
    display: none;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    /* 44px */
    height: 2.75rem;
    /* 44px */
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    /* 12px */
    font-size: 0.875rem;
    /* 14px */
    font-weight: 700;
    color: #475569;
    /* text-slate-600 */
    background-color: #f8fafc;
    /* bg-slate-50 */
    border: 1px solid #f1f5f9;
    /* border-slate-100 */
    transition: all 0.2s ease;
}

.pagination a.page-numbers:hover {
    color: #8564b5;
    /* text-brand */
    background-color: #ffffff;
    border-color: #cbd5e1;
    /* border-slate-300 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pagination .current {
    background-color: #8564b5;
    /* bg-brand */
    color: #ffffff;
    border-color: #8564b5;
    box-shadow: 0 4px 12px rgba(133, 100, 181, 0.25);
}

.pagination .dots {
    min-width: auto;
    background: transparent;
    border: none;
    color: #94a3b8;
    /* text-slate-400 */
    padding: 0 0.25rem;
}
