/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/


/* ============================================
 * 0. центровка меню под хедером для десктопа, на мобильных остается выравнивание слева
 * ============================================ */
@media (min-width: 992px) {
    .footer-navigation ul, 
    .main-navigation ul {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        justify-content: center;
        margin-left: -10px;
        margin-right: -10px;
    }
}


/* ============================================
 * Изменение высоты слайдера
 * ============================================ */
@media (min-width: 768px) {
    .card-slider-container {
        min-height: 400px;
    }
}

@media (min-width:768px) {
    .card-slider__image {
        min-height:400px
    }
}
@media (min-width: 1500px) {
    .card-slider-container {
        min-height: 500px;
    }
}

@media (min-width:1500px) {
    .card-slider__image {
        min-height:500px
    }
}

/* ============================================
 * 1. Расширение контейнера для ВСЕХ записей
 * ============================================ */
.site-content.fixed {
    max-width: 1300px;
}

.entry-content {
    max-width: 100%;
}

.entry-excerpt {
    max-width: 100%;
}

.entry-meta {
    max-width: 100%;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 3px solid #f2f2f2;
}

.sidebar-none .entry-meta {
    max-width: 100%;
    margin-bottom: 30px;
    border-bottom: 3px solid #f2f2f2;
}

.home-text {
    max-width: 100%;
}

.taxonomy-description {
    max-width: 100%;
}

/* ============================================
 * 2. Адаптация для wide-миниатюры
 * ============================================ */
@media (min-width: 768px) {
    .entry-image--wide {
        width: calc(100% + 90px);
        margin-left: -45px;
        margin-right: -45px;
    }
}

/* ============================================
 * 3. Рейтинг, соцкнопки и сайдбар внутри MEC
 * ============================================ */
.mec-reboot-after-description {
    clear: both;
    padding-top: 20px;
    margin-bottom: 20px;
}

.mec-reboot-sidebar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.mec-reboot-sidebar .widget {
    margin-bottom: 25px;
}

/* Форма поиска: кнопка справа от поля */
.search-form {
    display: flex;
    align-items: stretch;
}

.search-form > label {
    flex: 1;
}

.search-form .search-submit {
    position: static;
    width: 42px;
    height: auto;
    background: #4d3bfe;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-submit:before {
    content: "🔍";
    color: #fff;
    font-size: 1.1em;
    top: 0;
}

.search-form .search-submit:hover {
    opacity: 0.85;
}

/* ============================================
 * 4. Рейтинг: мобильная адаптация (три строки)
 * ============================================ */
@media (max-width: 767px) {
    .rating-box {
        display: block !important;
        text-align: left;
    }
    
    .rating-box__header {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .wp-star-rating {
        display: block;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .star-rating-text {
        display: block;
        text-align: left;
    }
}

/* ============================================
 * 5. Адаптация контента MEC без сайдбара темы
 * ============================================ */
.mec-event-page .content-area {
    max-width: none;
    flex: auto;
    padding-right: 0;
}

/* ============================================
 * 6. Адаптация для разных разрешений
 * ============================================ */
@media (max-width: 1199px) {
    .site-content.fixed {
        max-width: 960px;
    }
    .entry-image--wide {
        width: calc(100% + 90px);
        margin-left: -45px;
        margin-right: -45px;
    }
}

@media (max-width: 991px) {
    .site-content.fixed {
        max-width: 720px;
    }
    .entry-image--wide {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
}