/* /components/yakor_white/yakor_white.css */

/* --- 1. БЛОК ЯКОРНОЙ НАВИГАЦИИ (WHITE) --- */
.yak-white {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    letter-spacing: normal; 
    background-color: #ffffff;
    position: sticky;
    top: 50px; 
    z-index: 20000 !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    height: 50px; 
    box-sizing: border-box;
}

.yak-white__container {
    height: 100%;
    display: flex;
    align-items: center; 
}

.yak-white__block {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

/* --- 2. ОБЫЧНАЯ ПЛАШКА: Белый фон, Черный текст, Темная рамка --- */
.yak-white__item,
.yak-white__item_desk-white,
.yak-white__item_mob-white {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    height: 40px; 
    padding: 0 10px;
    font-weight: 400; 
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a;
    background-color: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

/* --- 3. ВЫДЕЛЕННАЯ ПЛАШКА (Active / Hover): Синий фон, Белый текст --- */
.yak-white__item:hover,
.yak-white__item--active,
.yak-white__item_desk-white:hover,
.yak-white__item_desk-white--active,
.yak-white__item_mob-white:hover,
.yak-white__item_mob-white--active {
    background-color: #282e6a !important;
    color: #ffffff !important;
    border-color: #1a1a1a;
}

/* Включение горизонтальной прокрутки меню на планшетах (600px - 1000px) */
@media (min-width: 601px) and (max-width: 1000px) {
    .yak-white__block {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none;    /* Firefox */
        justify-content: flex-start; /* Убирает space-between, чтобы плашки шли по порядку */
    }
    
    .yak-white__block::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .yak-white__item,
    .yak-white__item_desk-white,
    .yak-white__item_mob-white {
        flex: 0 0 auto !important; /* Запрещает кнопкам сжиматься и деформировать текст */
        font-size: 15px; /* Слегка уменьшаем шрифт для компактности на планшетах */
        padding: 0 15px;
    }
}



/* --- 4. МОБИЛЬНАЯ ВЕРСИЯ (Экраны 600px и менее) --- */
@media (max-width: 600px) {
    .yak-white {
        top: 0;
        height: 40px; 
    }

    .yak-white__block {
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none;    /* Firefox */
        gap: 4px; 
    }
    
    .yak-white__block::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .yak-white__item,
    .yak-white__item_mob-white {
        flex: 0 0 auto; 
        height: 32px;    
        padding: 0 12px; 
        font-size: 13px; 
    }
}
