/*
Theme Name: Twenty Twenty-Five Child
Theme URI: http://gbfministries.org
Description: Child theme for Twenty Twenty-Five (TT5)
Author: GBF
Author URI: http://gbfministries.org
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* Sticky навігація */
.wp-block-group.is-position-sticky,
.wp-block-navigation.is-position-sticky {
    position: sticky !important;
    top: 0;
    z-index: 999;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;*/
}

/* Якщо навігація в header */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 999;
    /*background-color: #ffffff;*/
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

/* Мовний перемикач --> */
/* ============================================
   СТИЛІ
   ============================================ */

/* Контейнер перемикача */
.menu-item-language {
    position: relative;
    list-style: none;
    margin-left: auto; /* Прижимаємо до правого краю */
}

/* Кнопка поточної мови */
.language-switcher-button {
    background-color: #f0f0f0;
    border: 0px solid #333;
	border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    min-width: 60px;
}

.language-switcher-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-1px);
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

.language-switcher-button:active {
    transform: translateY(0);
}

/* Dropdown з мовами */
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
	border-radius: 5px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
    min-width: 60px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
    z-index: 1000;
}

/* Показ dropdown при hover або клас .is-open */
.menu-item-language:hover .language-dropdown,
.menu-item-language.is-open .language-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease;
}

/* Анімація появи */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Елементи списку в dropdown */
.language-dropdown li {
    margin: 0;
    padding: 0;
}

/* Посилання в dropdown */
.language-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

/* Заокруглення для першого елемента */
.language-dropdown li:first-child a {
    border-radius: 5px 5px 0 0;
}

/* Заокруглення для останнього елемента */
.language-dropdown li:last-child a {
    border-radius: 0 0 5px 5px;
}

/* Один елемент (якщо тільки одна мова) */
.language-dropdown li:only-child a {
    border-radius: 5px;
}

/* ============================================
   АДАПТИВНІСТЬ (МОБІЛЬНІ ПРИСТРОЇ)
   ============================================ */

@media (max-width: 768px) {
    .menu-item-language {
        margin-left: 0;
    }
    
    .language-switcher-button {
        width: 100%;
        text-align: center;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 100%;
    }
}
/* <-- Мовний перемикач */






/* Hide the Plyr volume control on mobile */
@media (max-width: 768px) {
	.plyr__controls__item.plyr__volume input[type="range"] {
        display: none !important;
    }
}


/*for Give bottom*/
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

/*i can assign this to spacers so that empty-spaces pages footer goes down nicely*/
.flex-spacer {
    display: block;
    height: 100%;
    flex-grow: 1;
    min-height: 1px;
}

