/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ БЛОГА - ДЕТАЛЬНАЯ ПРОРАБОТКА
   Энциклопедия религий: элегантный, консервативный, удобный для чтения дизайн
   ========================================================================== */

/* ==========================================================================
   0. CSS-ПЕРЕМЕННЫЕ ДЛЯ БЛОГА (расширяем базовые)
   ========================================================================== */
:root {
    /* Дополнительные цвета для религиозной тематики */
    --color-sacred-gold: #d4af37;      /* Золото - священный цвет */
    --color-spiritual-purple: #7e57c2; /* Пурпурный - духовность */
    --color-earth-brown: #8d6e63;      /* Земляной - стабильность */
    --color-purity-white: #fefefe;     /* Чистота */
    --color-wisdom-indigo: #283593;    /* Мудрость */
    
    /* Оттенки серого для лучшей читаемости */
    --color-text-gray-light: #8a8a8a;
    --color-text-gray-medium: #5a5a5a;
    
    /* Градиенты для религиозной эстетики */
    --gradient-sacred: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(126, 87, 194, 0.05) 50%,
        rgba(77, 171, 247, 0.05) 100%);
    --gradient-divine-light: linear-gradient(135deg, 
        var(--color-sky-light) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    
    /* Тени с учетом религиозной символики */
    --shadow-holy: 0 4px 16px rgba(212, 175, 55, 0.08);
    --shadow-spiritual: 0 6px 20px rgba(126, 87, 194, 0.1);
    
    /* Размеры для религиозных элементов */
    --border-radius-sacred: 12px;
    --border-radius-rounded: 50px;
    
    /* Типографика для религиозных текстов */
    --font-size-scripture: 1.125rem;
    --line-height-scripture: 1.8;
    --letter-spacing-title: 0.02em;
    
    /* Анимации для плавных переходов */
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦЫ БЛОГА
   ========================================================================== */

/* Обертка блога - создает атмосферу библиотеки/храма знаний */
.blog-wrapper {
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

/* Декоративный фон с легким градиентом */
.blog-wrapper:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-sacred);
    z-index: -2;
    pointer-events: none;
}

/* Тонкий узор на фоне (опционально) */
.blog-wrapper:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(77, 171, 247, 0.03)"/></svg>');
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

  .site-main .content-wrapper {padding: 30px;}

/* ==========================================================================
   2. ЗАГОЛОВОК СТРАНИЦЫ БЛОГА
   ========================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 3rem 2rem;
    background: var(--gradient-divine-light);
    border-radius: var(--border-radius-sacred);
    border: 1px solid rgba(77, 171, 247, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Декоративные элементы для заголовка */
.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffefba 20%, #feda6f 50%, #ffd585 80%, transparent 100%);
    opacity: 0.7;
}

.page-header:after {
    content: '✡️☦️☪️🕉️☸️✝️☯️';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
    letter-spacing: 1rem;
    filter: grayscale(1);
}

.page-title {
    font-size: 2.75rem;
    color: var(--color-wisdom-indigo);
    margin-bottom: 0.75rem;
    font-weight: 300;
    letter-spacing: var(--letter-spacing-title);
    position: relative;
    display: inline-block;
    text-transform: none;
    line-height: 1.2;
    font-family: var(--font-family-serif);
}

.page-title:before {
    content: '📖';
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.5;
}

.page-title:after {
    content: '📚';
    position: absolute;
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.5;
}

.page-description {
    font-size: 1.25rem;
    color: var(--color-earth-brown);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================================================
   3. КАРТОЧКИ ЗАПИСЕЙ БЛОГА
   ========================================================================== */

article.post {
    background: var(--color-purity-white);
    border-radius: var(--border-radius-sacred);
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(77, 171, 247, 0.08);
    transition: all var(--transition-medium);
    overflow: hidden;
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Декоративная рамка для карточек */
article.post:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sacred);
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(126, 87, 194, 0.05) 50%,
        rgba(77, 171, 247, 0.05) 100%) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

article.post:hover {
    box-shadow: var(--shadow-spiritual);
    transform: translateY(-4px);
    border-color: rgba(77, 171, 247, 0.15);
}

/* Индикатор новой/популярной записи */
article.post.sticky {
    border-left: 4px solid var(--color-sacred-gold);
}

article.post.sticky:before {
    content: 'Закреплено';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-sacred-gold), #b8941f);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}


/* ==========================================================================
   5. МЕТАДАННЫЕ ЗАПИСЕЙ
   ========================================================================== */

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: 0.875rem;
    color: var(--color-text-gray-medium);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(77, 171, 247, 0.1);
    align-items: center;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.entry-meta span:before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.875rem;
    color: var(--color-sky-base);
}

.posted-on:before {
    content: '\f073'; /* Календарь */
}

.byline:before {
    content: '\f007'; /* Пользователь */
}

.reading-time:before {
    content: '\f017'; /* Часы */
}

.comments-link:before {
    content: '\f075'; /* Комментарий */
}

.entry-meta a {
    color: var(--color-text-gray-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.entry-meta a:hover {
    color: var(--color-sky-dark);
    text-decoration: none;
}

/* ==========================================================================
   6. МИНИАТЮРЫ ЗАПИСЕЙ
   ========================================================================== */

.post-thumbnail {
    margin: 1.75rem 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-secondary);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(77, 171, 247, 0.1), 
        rgba(126, 87, 194, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.post-thumbnail:hover:before {
    opacity: 1;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
    border-radius: 8px;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.post-thumbnail:hover img {
    transform: scale(1.05) rotate(0.5deg);
}

/* Декоративная рамка для изображения */
.post-thumbnail:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    pointer-events: none;
}

/* ==========================================================================
   7. КОНТЕНТ ЗАПИСЕЙ
   ========================================================================== */

.entry-content {
    font-size: var(--font-size-scripture);
    line-height: var(--line-height-scripture);
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* Улучшенные параграфы */
.entry-content p {
    margin-bottom: 1.5rem;
    orphans: 3;
    widows: 3;
}

ul {
    list-style: none;
    padding-left: 0; /* Также убираем отступ слева */
    margin-left: 0;
}

/* Списки для религиозного контента */
.entry-content ul,
.entry-content ol {
    padding-left: 2.5rem;
    margin-bottom: 1.75rem;
}

.entry-content li {
    margin-bottom: 0.875rem;
    position: relative;
    padding-left: 0.5rem;
}

.entry-content ul li:before {
    content: '✦';
    color: var(--color-sacred-gold);
    font-size: 0.875rem;
    position: absolute;
    left: -1.5rem;
    top: 0.4rem;
}

.entry-content ol {
    counter-reset: item;
}

.entry-content ol li:before {
    content: counter(item) '.';
    counter-increment: item;
    color: var(--color-spiritual-purple);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Цитаты в религиозном стиле */
.entry-content blockquote {
    border-left: 3px solid var(--color-sacred-gold);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--color-earth-brown);
    font-size: 1.25rem;
    line-height: 1.6;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 100%);
    padding: 2rem 2rem 2rem 3.5rem;
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote:before {
    content: '"';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    font-size: 3rem;
    color: var(--color-sacred-gold);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--color-text-gray-light);
    text-align: right;
}

.entry-content blockquote cite:before {
    content: '— ';
}

/* ==========================================================================
   8. КНОПКА "ЧИТАТЬ ДАЛЕЕ"
   ========================================================================== */

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #4e91ff 0%, #49afff 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-rounded);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-medium);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(77, 171, 247, 0.2);
    letter-spacing: 0.02em;
}

.more-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left var(--transition-slow);
}

.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.4);
    text-decoration: none;
    color: white;
}

.more-link:hover:before {
    left: 100%;
}

.more-link:after {
    content: '→';
    font-size: 1.125rem;
    transition: transform var(--transition-fast);
}

.more-link:hover:after {
    transform: translateX(4px);
}

.more-link .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* ==========================================================================
   9. ФУТЕР ЗАПИСИ (КАТЕГОРИИ, ТЕГИ)
   ========================================================================== */

.entry-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(77, 171, 247, 0.1);
    font-size: 0.875rem;
    color: var(--color-text-gray-medium);
}

.cat-links {
    background: linear-gradient(135deg, 
        rgba(77, 171, 247, 0.1), 
        rgba(126, 87, 194, 0.1));
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-rounded);
    color: var(--color-spiritual-purple);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(77, 171, 247, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cat-links:before {
    content: '📂';
    font-size: 0.875rem;
    opacity: 0.8;
}

.cat-links:hover {
    background: linear-gradient(135deg, #4e91ff 0%, #49afff 100%);
    color: white;
    text-decoration: none;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
}

.cat-links:hover a {
 color: #FFF;
}


.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a {
    background: rgba(141, 110, 99, 0.1);
    color: var(--color-earth-brown);
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(141, 110, 99, 0.2);
}

.tags-links a:hover {
    background: var(--color-earth-brown);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.edit-link a {
    color: var(--color-text-gray-light);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    font-size: 0.8125rem;
    border: 1px solid transparent;
}

.edit-link a:hover {
    color: var(--color-sky-dark);
    background: rgba(77, 171, 247, 0.1);
    text-decoration: none;
    border-color: rgba(77, 171, 247, 0.2);
}

/* ==========================================================================
   10. ПАГИНАЦИЯ
   ========================================================================== */

.navigation.posts-navigation {
    background: var(--color-purity-white);
    border-radius: var(--border-radius-sacred);
    padding: 2.5rem;
    margin: 4rem 0;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(77, 171, 247, 0.08);
    position: relative;
}

.navigation.posts-navigation:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--color-sacred-gold), 
        transparent);
    border-radius: 3px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 1), 
        rgba(233, 236, 239, 1));
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-rounded);
    transition: all var(--transition-medium);
    font-weight: 500;
    border: 1px solid rgba(77, 171, 247, 0.1);
    min-width: 180px;
    justify-content: center;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: linear-gradient(135deg, 
        var(--color-sky-light), 
        var(--color-sky-base));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    border-color: transparent;
        border-radius: var(--border-radius-rounded);
}

.nav-previous a {
    text-align: right;
}

.nav-next a {
    text-align: left;
}

.nav-arrow {
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.nav-previous a:hover .nav-arrow {
    transform: translateX(-3px);
}

.nav-next a:hover .nav-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   11. ВИДЖЕТЫ БЛОГА (ПРАВАЯ КОЛОНКА)
   ========================================================================== */

.right-sidebar {
    margin-top: 0;
    position: sticky;
    top: 2rem;
}

.widget {
    background: var(--color-purity-white);
    border-radius: var(--border-radius-sacred);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(77, 171, 247, 0.08);
    transition: transform var(--transition-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-spiritual);
}

.widget-title {
    font-size: 1.375rem;
    color: var(--color-wisdom-indigo);
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid rgba(77, 171, 247, 0.15);
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-sacred-gold), 
        var(--color-sky-base));
}

/* ==========================================================================
   12. СОЦИАЛЬНЫЕ ВИДЖЕТЫ
   ========================================================================== */

.socialmedia-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.socialmedia-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 1), 
        rgba(233, 236, 239, 1));
    border: 1px solid rgba(77, 171, 247, 0.1);
    position: relative;
    overflow: hidden;
}

.socialmedia-buttons a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--color-sky-base), 
        var(--color-spiritual-purple));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.socialmedia-buttons a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(77, 171, 247, 0.2);
    border-color: transparent;
}

.socialmedia-buttons a:hover:before {
    opacity: 1;
}

.socialmedia-buttons img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: grayscale(30%);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.socialmedia-buttons a:hover img {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

/* ==========================================================================
   13. СПИСКИ КАТЕГОРИЙ И АРХИВОВ
   ========================================================================== */

.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.widget_categories li,
.widget_archive li {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(77, 171, 247, 0.08);
    transition: all var(--transition-fast);
    position: relative;
}

.widget_categories li:last-child,
.widget_archive li:last-child {
    border-bottom: none;
}

.widget_categories li:hover,
.widget_archive li:hover {
    background: linear-gradient(90deg, 
        rgba(77, 171, 247, 0.05), 
        transparent);
    padding-left: 0.75rem;
    border-radius: 6px;
}

.widget_categories a,
.widget_archive a {
    color: var(--color-text-primary);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.widget_categories a:hover,
.widget_archive a:hover {
    color: var(--color-wisdom-indigo);
    text-decoration: none;
}

.widget_categories a:after {
    content: '→';
    opacity: 0.3;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.widget_categories li:hover a:after {
    opacity: 1;
    transform: translateX(4px);
    color: var(--color-sacred-gold);
}

/* Счетчик записей в категориях */
.widget_categories .count {
    background: rgba(77, 171, 247, 0.1);
    color: var(--color-sky-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.widget_categories li:hover .count {
    background: var(--color-sky-base);
    color: white;
}

/* ==========================================================================
   14. ВЫПАДАЮЩИЕ СПИСКИ АРХИВОВ
   ========================================================================== */

#archives-dropdown-2,
#archives-dropdown-3 {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(77, 171, 247, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, 
        var(--color-purity-white), 
        rgba(248, 249, 250, 1));
    color: var(--color-text-primary);
    font-family: var(--font-family-serif);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231c7ed6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

#archives-dropdown-2:hover,
#archives-dropdown-3:hover {
    border-color: var(--color-sky-base);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

#archives-dropdown-2:focus,
#archives-dropdown-3:focus {
    outline: none;
    border-color: var(--color-sky-base);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

/* Стилизация опций выпадающего списка */
#archives-dropdown-2 option,
#archives-dropdown-3 option {
    padding: 0.5rem;
    background: var(--color-purity-white);
    color: var(--color-text-primary);
}

#archives-dropdown-2 option:first-child,
#archives-dropdown-3 option:first-child {
    color: var(--color-text-gray-light);
    font-style: italic;
}

/* ==========================================================================
   15. АНИМАЦИИ И ЭФФЕКТЫ
   ========================================================================== */

/* Появление карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

article.post {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: both;
}

article.post:nth-child(1) { animation-delay: 0.1s; }
article.post:nth-child(2) { animation-delay: 0.2s; }
article.post:nth-child(3) { animation-delay: 0.3s; }
article.post:nth-child(4) { animation-delay: 0.4s; }
article.post:nth-child(5) { animation-delay: 0.5s; }
article.post:nth-child(n+6) { animation-delay: 0.6s; }

/* Эффект пульсации для активной записи */
@keyframes sacredPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4),
                    var(--shadow-light);
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0),
                    var(--shadow-spiritual);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0),
                    var(--shadow-spiritual);
    }
}

article.post:target {
    animation: sacredPulse 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: var(--color-sacred-gold);
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

/* Улучшение рендеринга шрифтов */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "clig", "calt";
}

/* ==========================================================================
   16. АДАПТИВНОСТЬ И КРОССБРАУЗЕРНАЯ СОВМЕСТИМОСТЬ
   ========================================================================== */

/* Большие экраны (1200px+) */
@media (min-width: 1200px) {
    .blog-wrapper {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
    
    .page-header {
        grid-column: 1 / -1;
    }
    
    .right-sidebar {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Планшеты и маленькие десктопы (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-title:before,
    .page-title:after {
        display: none;
    }
    

    .socialmedia-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .nav-previous a,
    .nav-next a {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
    }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
    .page-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
        border-radius: 10px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-title:before,
    .page-title:after {
        display: none;
    }
    
    .page-description {
        font-size: 1.125rem;
    }
    
    article.post {
        padding: 1.75rem;
        margin-bottom: 2rem;
        border-radius: 10px;
    }
    

    .entry-meta {
        font-size: 0.8125rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entry-meta span {
        padding-left: 1.75rem;
    }
    
    .entry-content {
        font-size: 1.0625rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .entry-content p:first-of-type:first-letter {
        initial-letter: 1;
        -webkit-initial-letter: 1;
    }
    
    .more-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .entry-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .navigation.posts-navigation {
        padding: 1.75rem;
        border-radius: 10px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-previous a,
    .nav-next a {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .widget {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .widget-title {
        font-size: 1.25rem;
    }
    
    .socialmedia-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Оптимизация для касаний */
    .more-link,
    .cat-links,
    .nav-previous a,
    .nav-next a,
    .socialmedia-buttons a {
        min-height: 44px; /* Минимальный размер для касаний по рекомендациям Apple/Google */
    }
    
    /* Увеличиваем отступы для касаний */
    .entry-content a:not(.more-link):not(.button) {
        padding: 2px 0;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1.25rem;
    }
    
    .site-main .content-wrapper{padding: 15px;}
    
    .page-title {
        font-size: 1.75rem;
    }
    
    article.post {
        padding: 1rem;
        margin-bottom: 1.75rem;
    }
    

    .post-thumbnail {
        margin: 1.25rem 0;
        border-radius: 6px;
    }
    
    .post-thumbnail img {
        border-radius: 6px;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 2rem;
    }
    
    .entry-content li:before {
        left: -1.25rem;
    }
    
    .entry-content blockquote {
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
        margin: 1.75rem 0;
    }
    
    .entry-content blockquote:before {
        left: 0.75rem;
        font-size: 2.5rem;
    }
    
    .cat-links,
    .tags-links a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .widget {
        padding: 1.25rem;
    }
    
    .widget-title {
        font-size: 1.125rem;
    }
}

/* Пейзажная ориентация на мобильных */
@media (max-width: 767px) and (orientation: landscape) {
    .page-header {
        padding: 1.5rem;
    }
    
    .entry-meta {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .socialmedia-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Высокое разрешение (ретина) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    .more-link,
    .cat-links,
    .nav-previous a,
    .nav-next a {
        border-width: 1.5px;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .blog-wrapper:before {
        background: linear-gradient(135deg, 
            rgba(212, 175, 55, 0.05) 0%, 
            rgba(126, 87, 194, 0.03) 50%,
            rgba(77, 171, 247, 0.03) 100%);
    }
    
    .page-header {
        background: linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(246 246 246 / 90%));
        border-color: rgba(77, 171, 247, 0.2);
    }
    
    .entry-title a {color: #d4af37;}
    .entry-title a:hover {color: #b0912d;}
    
    article.post,
    .widget,
    .navigation.posts-navigation {
        border-color: rgba(77, 171, 247, 0.2);
        color: #e0e0e0;
        background: rgba(219 219 219 / 6%);
    }
    
 
    
    .entry-meta,
    .entry-footer,
    .page-description {
        color: #a0a0c0;
    }
    
    .entry-content {
        color: #1c1c1c;
    }
    
    .socialmedia-buttons a {
        background: rgba(40, 40, 60, 0.9);
        border-color: rgba(77, 171, 247, 0.3);
    }
    
    #archives-dropdown-2,
    #archives-dropdown-3 {
        background: rgba(30, 30, 40, 0.9);
        color: #e0e0e0;
        border-color: rgba(77, 171, 247, 0.3);
    }
}

/* Поддержка старых браузеров */
@supports not (backdrop-filter: blur(10px)) {
    .page-header,
    .widget,
    .cat-links {
        background: var(--color-purity-white);
    }
}

@supports not (aspect-ratio: 1) {
    .socialmedia-buttons a {
        height: 60px;
        width: 60px;
    }
}

/* Печать */
@media print {
    .page-header:before,
    .page-header:after,
    .post-thumbnail:before,
    .post-thumbnail:after,
    .entry-title:after,
    .widget-title:after,
    .more-link:before,
    .socialmedia-buttons,
    .right-sidebar {
        display: none;
    }
    
    article.post {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .more-link,
    .cat-links {
        border: 1px solid #ddd;
        color: #000;
        background: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.875em;
        color: #666;
    }
}

/* ==========================================================================
   17. ДОСТУПНОСТЬ (ACCESSIBILITY)
   ========================================================================== */

/* Фокус для клавиатурной навигации */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(77, 171, 247, 0.5);
    outline-offset: 2px;
}

/* Увеличение текста */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Высококонтрастный режим */
@media (prefers-contrast: high) {
    :root {
        --color-sky-base: #0066cc;
        --color-sky-dark: #004080;
        --color-text-primary: #000000;
        --color-text-secondary: #333333;
    }
    
    .more-link,
    .cat-links {
        border: 2px solid currentColor;
    }
}

/* Увеличение текста в системе */
@media (prefers-reduced-data: reduce) {
    .blog-wrapper:after,
    .post-thumbnail:before,
    .post-thumbnail:after {
        display: none;
    }
    
    .post-thumbnail img {
        transition: none;
    }
}