/*
Theme Name: Parader
Theme URI: https://parader.ru
Author: Parader Team
Author URI: https://parader.ru
Description: Кастомная тема для сайта Parader — журнал моды и антитрендов
Version: 1.0.0
License: GPL v2 or later
Text Domain: parader
*/

/* ===== Импорт стилей главной страницы ===== */
wp_enqueue_style('parader-home', get_template_directory_uri() . '/assets/css/custom-home.css', array(), filemtime(get_template_directory() . '/assets/css/custom-home.css'));

/* ========================================
   1. БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #4c4b4b;
    line-height: 1.6;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005a87;
}

/* Ширина формы регистрации */
.entrance-form {
    max-width: 980px !important;
    width: 100% !important;
}

/* Если форма имеет другой класс, добавь его сюда */
#register-form,
form.entrance-form,
form[class*="entrance"] {
    max-width: 980px !important;
    width: 100% !important;
}

/* ========================================
   2. КОНТЕЙНЕРЫ
   ======================================== */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== СТИЛЬ ДЛЯ КАРТОЧЕК СТАТЕЙ (.card) ===== */
.card {
    background: #cbcacac2;
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgb(0, 0, 0);
    border-left: 4px solid #be1200;
}



/* Адаптив для мобилок */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
}
/* ========================================
   3. ШАПКА (HEADER)
   ======================================== */
.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 15px 15px 0px 0px;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
    min-height: 400px;
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Шапка на страницах (одинаковая) */
.page .site-header {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 15px 15px 0px 0px;
	box-shadow: 8px 0px 5px rgba(0, 0, 0, 0.69);
}

/* Внутренний контейнер шапки (логотип + меню) */
.site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1240px;
    padding: 0 20px;
    gap: 5px;
}

/* Логотип */
.site-branding {
    flex-shrink: 0;
}

.site-branding img {
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.custom-logo {
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   4. МЕНЮ (ОСНОВНОЕ И ПОДМЕНЮ)
   ======================================== */
.main-navigation {
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.35); /* Чуть затемнённый фон вместо белого */
    backdrop-filter: blur(8px);       /* Чуть больше размытия для контраста */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 5px 10px;
    width: 100%;
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.3); /* Более плотная тень, чтобы отделить от фона */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
    margin: 0;
}

.main-navigation > ul > li > a {
    display: block;
    padding: 10px 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 14px;
}

.main-navigation > ul > li > a:hover {
    color: #0073aa;
    background: rgba(255, 255, 255, 0.1);
}

/* Подменю */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 999;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-navigation ul li:hover > ul {
    display: block !important;
}

.main-navigation ul li ul li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 1px 6px;
}

.main-navigation ul li ul li a:hover {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.06);
}

/* Подменю третьего уровня */
.main-navigation ul li ul li ul {
    top: 0;
    left: 100%;
    min-width: 180px;
}

/* Активные пункты */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: #e74c3c;
    font-weight: 600;
}

/* Стрелки */
.main-navigation > ul > li.menu-item-has-children > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.main-navigation ul li ul li.menu-item-has-children > a::after {
    content: '▸';
    float: right;
    margin-left: 8px;
    font-size: 11px;
    color: #999;
}

.carousel-prev:hover,
.carousel-next:hover {
    box-shadow: 4px 4px 6px rgba(9, 0, 9, 9);
}

/* ========================================
   5. МОБИЛЬНОЕ МЕНЮ (ГАМБУРГЕР)
   ======================================== */
#nav-toggle {
    display: none;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

#nav-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

#mobile-menu {
    display: none;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

#mobile-menu ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
}

#mobile-menu ul li a:hover {
    color: #0073aa;
}

#mobile-menu ul li ul {
    display: none;
    padding-left: 20px;
}

#mobile-menu ul li ul li {
    border-bottom: none;
}

/* ===== МОБИЛЬНОЕ ПОДМЕНЮ ===== */
@media (max-width: 1024px) {
    #mobile-menu ul li ul {
        display: none;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        margin-top: 4px;
    }

    #mobile-menu ul li ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobile-menu ul li ul li:last-child {
        border-bottom: none;
    }

    #mobile-menu ul li ul li a {
        padding-left: 25px;
        font-size: 13px;
        color: #ddd;
    }
}

/* Адаптив для мобильного меню */
@media (max-width: 768px) {
    .main-navigation {
        display: none !important;
    }
    #nav-toggle {
        display: block;
    }
    #mobile-menu.active {
        display: block;
    }
    .site-header-inner {
        position: relative;
        padding: 10px 20px;
    }
}

/* ========================================
   6. ОСНОВНОЙ КОНТЕНТ
   ======================================== */
.site-main {
    padding: 30px 0;
	
}


/* ========================================
   7. ФУТЕР (ПОДВАЛ)
   ======================================== */
.site-footer {
   width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #1a1a1a;
    color: #ccc;
    padding: 30px 0;
    margin-top: 40px;
	box-shadow: 0 -3px 10px rgba(5, 0, 0,1.9);
}

.site-footer a {
    color: #aaa;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .site-info {
    font-size: 14px;
}

.site-footer .footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.site-footer .footer-navigation ul li a {
    font-size: 14px;
}

/* ========================================
   8. ЗАПИСИ (POSTS) И СТРАНИЦЫ (PAGES)
   ======================================== */
.single-post,
.page {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-top: -32px;
}

.single-post .entry-title,
.page .entry-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 10px 0 20px;
}

.single-post .entry-meta,
.page .entry-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.single-post .post-thumbnail img,
.page .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post .entry-content,
.page .entry-content {
    font-size: 17px;
    line-height: 1.8;
}

/* ========================================
   9. СЕТКА ЗАПИСЕЙ ДЛЯ АРХИВОВ
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 8px 10px 5px rgba(0, 0, 0, 0.69);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.post-item .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item .entry-header {
    padding: 20px 20px 10px;
}

.post-item .entry-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.post-item .entry-meta {
    font-size: 13px;
    color: #888;
}

.post-item .entry-summary {
    padding: 0 20px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* ========================================
   10. АРХИВЫ И ПОИСК
   ======================================== */
.archive-header,
.search-header {
    margin-bottom: 20px;
  padding: 10px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(74, 8, 8);
  margin-top: -29px;
}

.archive-title,
.search-title {
    font-size: 28px;
    margin: 0 0 5px;
}

.search-title span {
    color: #0073aa;
}

.archive-description {
    color: #666;
    font-size: 16px;
}

.search-count {
    color: #888;
    font-size: 15px;
}

/* ========================================
   11. ПАГИНАЦИЯ
   ======================================== */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* ========================================
   12. ФОРМЫ
   ======================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
	
}

input:focus,
textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

button,
input[type="submit"] {
    padding: 10px 25px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
    background: #005a87;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
}

/* ========================================
   13. КОММЕНТАРИИ
   ======================================== */
.comments-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment .avatar {
    float: left;
    margin-right: 15px;
    border-radius: 50%;
}

.comment .comment-meta {
    font-size: 14px;
    color: #888;
}

.comment .comment-content {
    margin-top: 10px;
}

/* ========================================
   14. САЙДБАР (ВИДЖЕТЫ)
   ======================================== */
.widget-area {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ========================================
   15. 404
   ======================================== */
.error-404 {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.error-404 .page-title {
    font-size: 48px;
    color: #e74c3c;
}

/* ========================================
   16. ПОДСВЕТКА ПОИСКОВОГО ЗАПРОСА
   ======================================== */
.search-highlight {
    background: #ffeb3b;
    padding: 0 2px;
    font-weight: bold;
}

/* ========================================
   17. ЗАГОЛОВКИ В КАРУСЕЛЯХ
   ======================================== */
.carousel-header h2 a {
    color: #1a1616 !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.carousel-header h2 a:hover {
    color: #732525 !important;
}

/* ========================================
   18. АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        max-width: 1200px;
        padding: 10px 20px;
        gap: 20px;
        width: 100%;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .site-footer .footer-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-post,
    .page,
    .error-404 {
        padding: 20px;
    }

    .single-post .entry-title,
    .page .entry-title {
        font-size: 26px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
    }

    .archive-title,
    .search-title {
        font-size: 24px;
    }

    .error-404 .page-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .single-post .entry-title,
    .page .entry-title {
        font-size: 22px;
    }

    .post-item .entry-title {
        font-size: 18px;
    }

    .site-branding {
        font-size: 20px;
    }

    .search-form {
        flex-direction: column;
    }
}

/* ========================================
   ЦВЕТ ССЫЛОК В МОБИЛЬНОМ ПОДМЕНЮ
   ======================================== */
@media (max-width: 1024px) {
    #mobile-menu ul li a {
        color: #333 !important;
    }
    
    #mobile-menu ul li ul li a {
        color: #333 !important;
    }
}


/* ========================================
   ПОИСК В ДЕСКТОПНОМ МЕНЮ (СПРАВА)
   ======================================== */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ===== ПОИСК В ШАПКЕ ===== */
.desktop-search {
    margin-left: auto;    /* прижимаем к правому краю */
    margin-top: 1.5px;      /* отступ сверху */
    margin-right: 15px;   /* отступ справа */
    flex-shrink: 0;
}

.desktop-search input[type="search"] {
    width: 160px !important;
    flex: 0 0 160px !important;
    max-width: 160px !important;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.desktop-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.desktop-search input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    width: 180px !important;
    flex: 0 0 180px !important;
    max-width: 180px !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.desktop-search input[type="submit"] {
    display: none !important;
}

.desktop-search label {
    display: none !important;
}

/* Скрываем десктопный поиск на мобилках */
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
}
/* ========================================
   СКРЫВАЕМ КНОПКУ И LABEL В ПОИСКЕ
   ======================================== */
.search-form .search-submit,
.search-form label,
.desktop-search .search-submit,
.desktop-search label,
.mobile-search .search-submit,
.mobile-search label {
    display: none !important;
}

.search-form .search-field {
    display: block !important;
}

/* ========================================
   ПОИСК В МОБИЛЬНОМ МЕНЮ
   ======================================== */
.mobile-search {
    display: none;
    padding: 15px 0 5px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.mobile-search input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
}

.mobile-search input[type="search"]:focus {
    border-color: #0073aa;
    outline: none;
    background: #fff;
}

.mobile-search input[type="submit"] {
    display: none;
}

/* Показываем поиск только на мобилках */
@media (max-width: 768px) {
    .mobile-search {
        display: block;
    }
}

/* ========================================
   СТРАНИЦА РЕЗУЛЬТАТОВ ПОИСКА
   ======================================== */
.search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
    margin-top: -25px;
}

/* Заголовок поиска */
.search-header {
    margin-bottom: 30px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-title {
    font-size: 28px;
    margin: 0 0 5px;
}

.search-title span {
    color: #e74c3c;
}

.search-count {
    color: #888;
    font-size: 15px;
}

/* Сообщение "Ничего не найдено" */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results h1 {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.no-results .search-form {
    max-width: 400px;
    margin: 20px auto;
}
/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ — НА ВСЮ ШИРИНУ
   ======================================== */
@media (max-width: 768px) {
    .custom-homepage,
    .single-post-wrapper,
    .page-wrapper,
    .search-wrapper {
        max-width: 100% !important;
        padding: 15px 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.9) !important;
		
   
   }

    .site-header {
        max-width: 100% !important;
        border-radius: 0 !important;
        min-height: 200px !important;
        height: auto !important;
        padding: 10px 15px !important;
        margin: 0 !important;
    }

    .site-header-inner {
        padding: 0 !important;
    }

    .site-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .custom-homepage {
        margin-top: -3px !important;
		
    }
}
/* ========================================
   РАСТЯГИВАЕМ КОНТЕЙНЕР НА МОБИЛКАХ
   ======================================== */
@media (max-width: 768px) {
    .custom-homepage {
        max-width: 100% !important;
        padding: 15px 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        margin-top: -10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ========================================
   ПОЛНОЕ РАСТЯЖЕНИЕ НА МОБИЛКАХ
   ======================================== */
@media (max-width: 768px) {
    /* Убираем ограничения у всех родительских блоков */
    body,
    .site-wrapper,
    .site-main,
    .custom-homepage {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }

    /* Убираем padding у site-wrapper */
    .site-wrapper {
        padding: 0 !important;
    }

    /* Растягиваем основной контейнер */
    .custom-homepage {
        padding: 15px 10px !important;
        margin-top: -10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

/* ===== СТИЛИ ДЛЯ ЗАГЛУШЕК В РУБРИКАХ ===== */
.adv-placeholder {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 570 / 770 !important; /* Твой точный размер */
    overflow: hidden !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.adv-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Обрезает лишнее, сохраняя пропорции */
    display: block !important;
    border-radius: 12px !important;
}

/* Заглушка в featured-block */
.featured-block .adv-placeholder {
    border-radius: 12px !important;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.65) !important;
}

/* Убираем рамку и фон у заглушки */
.adv-placeholder-wrapper .adv-placeholder {
    background: transparent !important;
    border: none !important;
}

/* ===== ФОН-ЗАГЛУШКА ДЛЯ БЛОКОВ С КАРТИНКАМИ ===== */
.big-block,
.small-block {
    background-color: #f0f0f0 !important;
    transition: background-color 0.3s ease;
}

/* Когда картинка загрузилась — фон перекрывается */
.big-block,
.small-block {
    background-blend-mode: normal;
}

/* ===== УБИРАЕМ МЕРЦАНИЕ НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    .big-block,
    .small-block {
        min-height: 200px !important;
        background-color: #f0f0f0 !important;
    }
    
    .big-block .text-wrapper,
    .small-block .text-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }
}

/* ===== ТАГЛАЙН В ШАПКЕ ===== */
.header-tagline {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    line-height: 1.3;
    filter: drop-shadow(0 0 3px rgba(1, 1, 171, 0.4))
            drop-shadow(0 0 8px rgba(1, 1, 171, 0.3))
            drop-shadow(0 0 18px rgba(1, 1, 171, 0.2))
            drop-shadow(0 0 35px rgba(1, 1, 171, 0.1));
    transition: all 0.3s ease;
}

/* ===== ПРИ НАВЕДЕНИИ — УСИЛЕНИЕ СВЕЧЕНИЯ ===== */
.header-tagline:hover {
    filter: drop-shadow(0 0 5px rgba(1, 1, 171, 0.6))
            drop-shadow(0 0 14px rgba(1, 1, 171, 0.45))
            drop-shadow(0 0 30px rgba(1, 1, 171, 0.3))
            drop-shadow(0 0 55px rgba(1, 1, 171, 0.15));
}
/* ===== ДЛЯ ПЛАНШЕТОВ (768px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-tagline {
        font-size: 14px;
        font-weight: 700;
        max-width: 250px;
    }
}

/* ===== ДЛЯ МОБИЛОК (до 768px) ===== */
@media (max-width: 768px) {
    .header-tagline {
        font-size: 13px;
        font-weight: 300;
        max-width: 200px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }
}

/* ===== ДЛЯ САМЫХ МАЛЕНЬКИХ (до 480px) ===== */
@media (max-width: 480px) {
    .header-tagline {
        font-size: 11px;
        font-weight: 300;
        max-width: 150px;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }
}

.alignleft {
    float: left;
    margin-right: 20px;
}
.alignright {
    float: right;
    margin-left: 20px;
}

/* ========================================
   ОБТЕКАНИЕ КАРТИНОК (ДЛЯ ВИЗУАЛЬНОГО РЕДАКТОРА)
   ======================================== */

/* Стили для картинок с выравниванием */
.alignleft {
    float: left;
    margin: 5px 20px 10px 0;
    max-width: 50%;
    height: auto;
	box-shadow: 0 4px 20px rgb(0, 0, 0);
}

.alignright {
    float: right;
    margin: 5px 0 10px 20px;
    max-width: 50%;
    height: auto;
	box-shadow: 0 4px 20px rgb(0, 0, 0);
}

.aligncenter {
    display: block;
    margin: 10px auto;
	box-shadow: 0 4px 20px rgb(0, 0, 0);
}

.alignnone {
    display: inline;
    margin: 10px 0;
	box-shadow: 0 4px 20px rgb(0, 0, 0);
}

/* ===== ДЛЯ КРУГЛЫХ КАРТИНОК (shape-outside) ===== */
.alignleft.rounded,
.alignright.rounded,
img[style*="border-radius: 50%"] {
    shape-outside: circle(50%);
}

/* ===== ОБТЕКАНИЕ В ВИЗУАЛЬНОМ РЕДАКТОРЕ ===== */
/* Эти стили подключаются ТОЛЬКО в админке */
body#tinymce .alignleft {
    float: left !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
}

body#tinymce .alignright {
    float: right !important;
    margin-left: 20px !important;
    margin-bottom: 10px !important;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛОК ===== */
@media (max-width: 600px) {
    .alignleft,
    .alignright {
        float: none !important;
        display: block;
        margin: 10px auto !important;
        max-width: 100% !important;
    }
}


/* Скрываем всю ерунду WP Mail SMTP */
#wp-mail-smtp-notice-bar {
    display: none !important;
}

.wpms-email-sending-errors-banner {
    display: none !important;
}

#wp-mail-smtp-pro-banner {
    display: none !important;
}

/* Скрывает все блоки с предложением обновления */
.wp-mail-smtp-upgrade-banner,
.wp-mail-smtp-upgrade-license-banner {
    display: none !important;
}

/* Скрывает все рекламные и информационные баннеры WP Mail SMTP */
#wp-mail-smtp-notice-bar,
.wpms-email-sending-errors-banner,
#wp-mail-smtp-pro-banner,
.wp-mail-smtp-upgrade-banner,
.wp-mail-smtp-upgrade-license-banner,
.wp-mail-smtp-notice {
    display: none !important;
}


/* ===== СТИЛИ ДЛЯ ГОРОСКОПА ===== */
.horoscope-rubric .carousel-header h2 a:hover {
    color: #0d47a1 !important;
}

.horoscope-rubric .horoscope-item {
    transition: all 0.3s ease !important;
}

.horoscope-rubric .horoscope-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 10px 10px 18px rgba(0,0,0,0.3) !important;
    border-color: #1a237e !important;
}

.horoscope-rubric .horoscope-item:hover img {
    transform: scale(1.05);
    border-color: #0d47a1 !important;
}

.horoscope-rubric .horoscope-item:hover h3 {
    color: #0d47a1 !important;
}

.horoscope-rubric .horoscope-item-link {
    display: block;
    text-decoration: none;
}

.horoscope-rubric .horoscope-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.horoscope-rubric .horoscope-grid-item {
    flex: 0 0 auto;
}

/* Адаптив для гороскопа */
@media (max-width: 1024px) {
    .horoscope-rubric .horoscope-item {
        width: 180px !important;
    }
    .horoscope-rubric .horoscope-item img {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 768px) {
    .horoscope-rubric .horoscope-item {
        width: 160px !important;
    }
    .horoscope-rubric .horoscope-item img {
        width: 80px !important;
        height: 80px !important;
    }
    .horoscope-rubric .horoscope-item h3 {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .horoscope-rubric .horoscope-item {
        width: 140px !important;
    }
    .horoscope-rubric .horoscope-item img {
        width: 70px !important;
        height: 70px !important;
    }
    .horoscope-rubric .horoscope-item h3 {
        font-size: 12px !important;
    }
    .horoscope-rubric .horoscope-item p {
        font-size: 11px !important;
        min-height: 30px !important;
    }
}


/* ==========================================
   СТАТИСТИКА САЙТА (ГОРИЗОНТАЛЬНАЯ)
   ========================================== */
.site-stats {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    margin-top: 5px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.stat-number {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    min-width: 35px;
    text-align: right;
}

.stat-label {
    color: #fff;
    font-size: 13px;
}

.stat-divider {
    color: #fff;
    font-weight: 300;
    user-select: none;
}

/* Убираем отступы у меню */
.footer-menu {
    margin-bottom: 0;
    padding-bottom: 1px;
}

/* Адаптив */
@media (max-width: 600px) {
    .stats-container {
        font-size: 12px;
        gap: 12px;
        padding: 0 10px;
    }
    .stat-number {
        font-size: 15px;
        min-width: 25px;
    }
    .stat-label {
        font-size: 11px;
    }
    .stat-divider {
        display: none;
    }
}

/* ==========================================
   ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ (ПРОСТЫЕ)
   ========================================== */

@media (max-width: 768px) {
    /* Убираем фон и отступы, делаем контент на всю ширину */
    .site-content,
    .post,
    .entry-content,
    .single-post .site-content,
    .single-post .post {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* H1 чтобы не вылазил */
    .entry-title,
    h1.entry-title,
    .post-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Картинки чтобы не вылазили */
    .entry-content img,
    .post-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Контентная область на всю ширину */
    .entry-content,
    .post-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ: БОЛЬШОЙ БЛОК БЕЗ ТЕКСТА ===== */
@media (max-width: 768px) {
    .big-block .text-wrapper .excerpt {
        display: none !important;
    }
    
    .big-block .text-wrapper h2 {
        font-size: 1.2em !important;
        margin-bottom: 0 !important;
    }
    
    .big-block .text-wrapper {
        padding: 15px !important;
       background: rgba(0, 0, 0, 0.06); !important;
    }
}


/* ==========================================
   ССЫЛКИ НА СТРАНИЦЕ ЗАПИСИ В НИЗУ СТАРАЯ НОВАЯ СТАТЬЯ
   ========================================== */

/* ===== НАВИГАЦИЯ МЕЖДУ СТАТЬЯМИ ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.post-navigation a:hover {
    border-color: #0073aa;
    color: #0073aa;
    background: #f5f9ff;
}

/* ==========================================
   СЕЙЧАС ЧИТАЮТ
   ========================================== */
.now-reading {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.now-reading-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #555;
}

.now-reading-label {
    font-weight: 600;
    color: #e74c3c;
}

.now-reading-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.now-reading-items a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.now-reading-items a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.now-reading-divider {
    color: #ccc;
    font-size: 12px;
}

/* Адаптив */
@media (max-width: 600px) {
    .now-reading-inner {
        font-size: 12px;
        padding: 0 10px;
        flex-direction: column;
        gap: 4px;
    }
    .now-reading-items {
        justify-content: center;
    }
    .now-reading-divider {
        display: none;
    }
    .now-reading-items a {
        display: inline-block;
        padding: 2px 0;
    }
}

/* Убираем надпись "Пагинация записей", оставляя кнопки */
.navigation.pagination .screen-reader-text,
.navigation .nav-links .screen-reader-text {
    display: none !important;
}

.entrance-form {
    max-width: 980px !important;
    width: 100% !important;
}


/* Скрываем QRX на мобильных устройствах */
@media (max-width: 768px) {
    #captcha-step-keys {
        display: none !important;
    }
}

/* ==========================================
   УСПЕШНАЯ РЕГИСТРАЦИЯ
   ========================================== */
.registration-success {
    text-align: center;
    padding: 30px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 2px solid #4caf50;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.registration-success h2 {
    color: #2e7d32;
    margin-top: 0;
}

.registration-success .timer {
    font-weight: bold;
    font-size: 24px;
    color: #0073aa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ПОДЛОЖКА ПРИ НАВЕДЕНИИ НА ВСЕ БЛОКИ ===== */
.big-block:hover .text-wrapper,
.small-block:hover .text-wrapper {
    background: rgba(249, 251, 145, 0.55) !important;
}

/* ===== ЦВЕТ ТЕКСТА ===== */
.big-block .text-wrapper,
.big-block .text-wrapper a,
.big-block .text-wrapper .date,
.small-block .text-wrapper,
.small-block .text-wrapper a,
.small-block .text-wrapper .date {
    color: #2f2f2f !important;
}

/* ===== КОММЕНТАРИИ ===== */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.comment-author .avatar {
    float: left;
    margin-right: 15px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 16px;
}

.comment-metadata {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* ===== ФОРМА КОММЕНТАРИЯ ===== */
.comment-respond {
    margin-top: 30px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 10px;
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.comment-respond label {
    font-weight: 600;
    font-size: 14px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.comment-respond textarea {
    resize: vertical;
}

.comment-respond .form-submit {
    margin-top: 15px;
}

.comment-respond .submit {
    padding: 10px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-respond .submit:hover {
    background: #005a87;
}

/* ===== СОЦСЕТИ В ФУТЕР ===== */

.footer-social {
    display: flex;
    flex-direction: row;      /* в строчку */
    align-items: center;
    gap: 12px;                /* расстояние между иконками */
    flex-wrap: wrap;          /* если иконок станет много — перенос */
}

.footer-social a {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.footer-social a:hover img {
    opacity: .85;
    transform: scale(1.08);
    transition: all .2s ease;
}

.footer-social-title {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

/* ===== Соцсети — правый верхний угол шапки ===== */
.header-social {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: row;      /* иконки в строчку */
    align-items: center;
    gap: 10px;                /* расстояние между иконками */
}
.header-social a {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}
.header-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    transition: transform .2s ease;
}
.header-social a:hover img {
    transform: scale(1.08);
}

/* На мобилке сдвигаем левее, чтобы не налезать на гамбургер */
@media (max-width: 768px) {
    .header-social { top: 10px; right: 60px; gap: 8px; }
    .header-social img { width: 28px; height: 28px; }
}


/* ==========================================================================
   Popup "Похожие статьи" (Левый нижний угол)
   ========================================================================== */
.parader-popup-left {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Прижимаем к левому краю */
    width: 400px;
    height: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Чтобы ничего не вылезало за края */
    
    /* Начальное состояние для анимации */
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Класс, который добавляет JS для плавного появления */
.parader-popup-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Крестик внизу слева */
.parader-popup-left-close {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    line-height: 1;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.parader-popup-left-close:hover {
    background: #e74c3c; /* Красный при наведении */
    color: #fff;
}

/* Шапка блока */
.parader-popup-left-header {
    display: flex;
    justify-content: space-between; /* Текст слева, цифра справа */
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Контейнер для статей */
.parader-popup-left-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
}

/* Карточка одной статьи */
.parader-popup-left-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    flex: 1;
    overflow: hidden;
}

.parader-popup-left-item:hover {
    background: #f0f0f0;
}

/* Картинки */
.parader-popup-left-img img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 3px;
}

/* Заголовки */
.parader-popup-left-item h4 {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    color: #222;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Обрезаем длинный текст до 2 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптив для мобилок (чуть уменьшаем, чтобы не перекрывать контент) */
@media (max-width: 768px) {
    .parader-popup-left {
        width: 130px;
        height: 220px;
        bottom: 10px;
        left: 10px;
    }
}

