/*
Theme Name:   GeneratePress Child
Theme URI:    https://findthefox.ru/
Description:  Дочерняя тема для GeneratePress
Author:       Pavel A.
Author URI:   https://findthefox.ru/
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-child
*/

/* 
 * Template: generatepress ← ОБЯЗАТЕЛЬНО!
 * Должно совпадать с названием папки родительской темы
 */
 
 .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

/* Делаем фон меню прозрачным */
.main-navigation {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

/* Стили для пунктов меню */
.home .main-navigation .main-nav ul li a {
    color: #ffffff !important; /* Цвет текста меню */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Тень для читаемости */
}

/* При наведении */
.main-navigation .main-nav ul li:hover > a {
    color: #A49B82 !important;
    background-color: rgba(255,255,255,0.1) !important;
}

/* Для мобильного меню */
.main-navigation.toggled {
    background-color: rgba(0,0,0,0.9) !important;
}

/* Активируем липкость (прилипание) */
#site-navigation {
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* При скролле меняем фон для читаемости */
.main-navigation.scrolled {
    background-color: rgba(0,0,0,0.7) !important; /* Полупрозрачный черный */
    backdrop-filter: blur(10px); /* Размытие фона под меню */
    -webkit-backdrop-filter: blur(10px);
}
.main-navigation.scrolled .main-nav ul li a {
    color: #ffffff !important; /* Цвет текста меню */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Тень для читаемости */
}

nav.scrolled div div.main-nav ul li ul.sub-menu {background-color:grey;}

/* Фон на всю страницу */
body.home {
    background: url('https://findthefox.ru/images/astrology_aside.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Убираем отступы у контента */
.site-content {
    margin-top: 0;
    padding-top: 0;
}

/* Контейнер контента прозрачный для первого экрана */
.entry-content, .site-main {
    background-color: transparent;
}

/* Для главной страницы убираем отступ сверху */
.home .site-content {
    padding-top: 0;
}
.separate-containers .inside-article {background-color:transparent;}
#site-navigation {padding-top:2em;}

/* ===== БАЗОВЫЙ РАЗМЕР ДЛЯ ДЕСКТОПА ===== */
.main-navigation .main-nav ul li a {
    font-size: 18px;  /* Основной размер */
    font-weight: 500;  /* Средняя жирность для читаемости */
    letter-spacing: 0.3px;  /* Легкий межбуквенный интервал */
    padding: 0 20px;  /* Отступы слева-справа у пунктов */
    line-height: 60px;  /* Высота строки = высота меню */
}

/* Высота самого меню */
.main-navigation {
    min-height: 60px;  /* Комфортная высота для клика */
}

/* ===== ДЛЯ НЕБОЛЬШИХ НОУТБУКОВ (1024-1200px) ===== */
@media (max-width: 1200px) {
    .main-navigation .main-nav ul li a {
        font-size: 16px;
        padding: 0 16px;
    }
}

/* ===== ДЛЯ ПЛАНШЕТОВ (768-1024px) ===== */
@media (max-width: 1024px) {
    .main-navigation .main-nav ul li a {
        font-size: 16px;
        padding: 0 12px;
    }
	.ya-share2 {z-index:1000;position:fixed;top:90%;left:0%;}
}

/* ===== ДЛЯ МОБИЛЬНЫХ (< 768px) ===== */
@media (max-width: 768px) {
    /* Гамбургер-меню и раскрытое меню */
    .main-navigation .main-nav ul li a {
        font-size: 20px;
        padding: 15px 20px;
        line-height: 1.4;
    }
    
    /* Кнопка гамбургера */
    .menu-toggle {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    /* Подменю на мобильных */
    .main-navigation .main-nav ul ul li a {
        font-size: 15px;
        padding-left: 35px;  /* Отступ для вложенных */
    }
	.ya-share2 {z-index:1000;position:fixed;top:90%;left:0%;}
}

/* ===== ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ (< 480px) ===== */
@media (max-width: 480px) {
    .main-navigation .main-nav ul li a {
        font-size: 16px;
        padding: 12px 15px;
    }
	.ya-share2 {z-index:1000;position:fixed;top:90%;left:0%;}
}
/* Кнопки Яндекса */
.ya-share2 {
    position: fixed;
    top: 30%;
}
.ya-share2__title {display:none !important;}
/* Прозрачный футер */
footer {background-color:transparent;}
.site-footer {color:white;}

.gp-icon.icon-search {color:white;font-weight:500;}

/* ===== ЛИПКИЙ САЙДБАР ===== */
@media (min-width: 769px) {
    /* Основной контейнер */
    .site-content {
        display: flex;
        align-items: flex-start; /* Важно! Выравнивание по верху */
    }
    
    /* Контентная область */
    .content-area {
        flex: 1;
        order: 2;
    }
    
    /* Липкий сайдбар */
    .widget-area {
        position: sticky;
        top: 80px; /* Отступ сверху с учетом высоты меню */
        align-self: flex-start; /* Прилипает относительно флекс-контейнера */
        flex-shrink: 0;
        max-height: calc(100vh - 100px); /* Максимальная высота = высота экрана минус отступы */
        overflow-y: auto; /* Скролл внутри сайдбара если контент не влезает */
    }
    
    /* Кастомный скроллбар для сайдбара */
    .widget-area::-webkit-scrollbar {
        width: 4px;
    }
    
    .widget-area::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .widget-area::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }
}
.tagline, .site-copyright {line-height: 1.8;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    font-family: 'Century Gothic', sans-serif;
    font-style: normal;
    font-weight: 400;
    color: #ccc;
    text-align: center;
    visibility: visible;
    box-sizing: border-box;
    margin: 0;
}
p.site-title {    -webkit-font-smoothing: antialiased;
    font-family: 'Century Gothic', sans-serif;
    font-style: bold;
    text-align: center;
    visibility: visible;
    box-sizing: border-box;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.357142em;
    color: #fff;
}
.grid-container {width:100% !important;max-width:100%;}

/*Сайдбар левый */
#left-sidebar {background: url('https://findthefox.ru/images/forest_index.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;}

#nav_menu-2 {font-size: 1.8571428em;
    line-height: 1.3;text-align:center;}
#nav_menu-2 div ul li a:hover {color:#dbca9e;}
.blog #main, .single #main, .category #main, .page #main {max-width:80%;}
.home.page #main {width:100%;max-width:100% !important;}
p {
    margin: 0 0 1.5em;
}
.content-area {margin-left:5%;}
blockquote p {font-size:1em;font-style:italic;margin-bottom:0.8em;}
.entry-meta {text-align:center;font-size: 1em;
    line-height: 1.6;
font-style: italic;
    color: #767676;
}
body.single .site-footer {display:none;}
.separate-containers .page-header {background-color:transparent;}
header.page-header h1 {text-align:center;}
.entry-meta {margin-top:1em;}
.blog article, .category article {border-bottom: 1px solid #DBCA9E;}
.single figure.wp-block-image {margin-bottom:1.5em !important;}

.blog .post-categories a, .single .post-categories a {color:#333;text-transform: uppercase;
    letter-spacing: 0.227272em;
    font-size: 0.875em;
}
.blog .post-categories, .single .post-categories  {text-align:center;padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;}
.page article {padding-top:150px;}
.single article .inside-article header {padding-bottom:2em;}
body.page-id-717 #left-sidebar, body.page-id-721 #left-sidebar, body.page-id-735 #left-sidebar, body.page-id-771 #left-sidebar {background: url('https://findthefox.ru/images/astrology_aside.jpg') no-repeat center center fixed;}

div.crp-grid {margin-top:5em !important;margin-bottom:5em !important;}
div.crp-grid h3 {margin-bottom:1em !important;}
body.home div.copyright-bar {color:white !important;}

/* Лайтбокс */
/* Затемнённый фон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Окно */
.modal-box {
    width: 80%;
    max-width: 900px;
    height: 80%;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Заголовок */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* Кнопка закрытия */
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

/* iframe */
.modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
}
/*body.blog aside#block-14, body.single aside#block-14 {display:none;}
body.page aside#block-2 {display:none;}*/

body:not(.home) nav:not(.scrolled) div .main-nav ul.menu li.menu-item a {color:black !important;}