/**
 * Header Bottom Bar Styles
 * 
 * Стилі для нижньої частини хедера (контакти + соціальні мережі)
 * Використовується тільки для Header Style: Default
 * 
 * @package LikeCottage
 * @since 1.0.0
 */

/* ========================================
   ОСНОВНИЙ КОНТЕЙНЕР
   ======================================== */

.lc-header-bottom-bar {
    width: 100%;
    position: relative;
    z-index: 1;
}

.lc-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Ліва частина (контакти) */
.lc-bottom-bar-left {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Права частина (соціальні мережі) - хедер */
.lc-bottom-bar-right {
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    
    /* Однаковий відступ від правого краю як у футері */
    padding-right: 0;
}

/* ========================================
   КОНТАКТИ (HORIZONTAL)
   ======================================== */

.lc-header-contacts-inline {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.lc-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 24px; */ /* ✅ ВИДАЛЕНО: буде застосовано з Redux dynamic CSS */
    line-height: 1;
}

.lc-contact-icon i {
    display: block;
}

.lc-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-contact-heading {
    /* font-size: 16px; */ /* ✅ ВИДАЛЕНО: буде застосовано з Redux dynamic CSS */
    /* font-weight: 600; */ /* ✅ ВИДАЛЕНО: буде застосовано з Redux dynamic CSS */
    line-height: 1.3;
}

.lc-contact-subtext {
    /* font-size: 14px; */ /* ✅ ВИДАЛЕНО: буде застосовано з Redux dynamic CSS */
    /* font-weight: 400; */ /* ✅ ВИДАЛЕНО: буде застосовано з Redux dynamic CSS */
    line-height: 1.3;
}

/* ========================================
   СОЦІАЛЬНІ МЕРЕЖІ - БАЗОВІ СТИЛІ
   ======================================== */

.lc-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lc-social-link i {
    display: block;
    line-height: 1;
}

/* ========================================
   СОЦІАЛЬНІ МЕРЕЖІ В ХЕДЕРІ
   Стилі з вищою специфічністю для header
   ======================================== */

/* Базові стилі для хедера */
.lc-header-bottom-bar .lc-social-header.lc-social-icons {
    gap: 15px;
}

.lc-header-bottom-bar .lc-social-header .lc-social-link {
    font-size: 24px;
    color: #1E3A4C;
}

/* Default стиль - без фону */
.lc-header-bottom-bar .lc-social-header.lc-social-style-default .lc-social-link {
    padding: 0;
    background: transparent !important;
}

/* Rounded стиль - круглі */
.lc-header-bottom-bar .lc-social-header.lc-social-style-rounded .lc-social-link {
    border-radius: 50%;
    padding: 12px;
    background-color: #f5f5f5;
}

/* Square стиль - квадратні */
.lc-header-bottom-bar .lc-social-header.lc-social-style-square .lc-social-link {
    border-radius: 8px;
    padding: 12px;
    background-color: #f5f5f5;
}

/* Hover ефекти для хедера */
.lc-header-bottom-bar .lc-social-header .lc-social-link:hover {
    transform: translateY(-2px);
}

.lc-header-bottom-bar .lc-social-header.lc-social-style-default .lc-social-link:hover {
    color: #FF6B00;
}

.lc-header-bottom-bar .lc-social-header.lc-social-style-rounded .lc-social-link:hover,
.lc-header-bottom-bar .lc-social-header.lc-social-style-square .lc-social-link:hover {
    color: #ffffff;
    background-color: #FF6B00;
}

/* Active ефекти для хедера */
.lc-header-bottom-bar .lc-social-header .lc-social-link:active {
    transform: translateY(0) scale(0.95);
}

.lc-header-bottom-bar .lc-social-header.lc-social-style-rounded .lc-social-link:active,
.lc-header-bottom-bar .lc-social-header.lc-social-style-square .lc-social-link:active {
    background-color: #cc5500;
}

/* ========================================
   СОЦІАЛЬНІ МЕРЕЖІ У ФУТЕРІ
   Стилі з вищою специфічністю для footer
   Cross-browser compatible
   ======================================== */

/* Контейнер для футера - кросбраузерне вирівнювання */
.lc-footer-social-wrap {
    display: -webkit-box;      /* Safari 3.1-6, iOS 6-, Android browser */
    display: -webkit-flex;     /* Safari 6.1+, Chrome 21-28 */
    display: -moz-box;         /* Firefox 19- */
    display: -ms-flexbox;      /* IE 10 */
    display: flex;             /* Modern browsers */
    
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    
    /* Однаковий відступ від правого краю як у хедері */
    padding-right: 0;
}

/* Bootstrap override для правого вирівнювання */
.lc-footer-social-wrap.justify-content-lg-end {
    -webkit-box-pack: end !important;
    -webkit-justify-content: flex-end !important;
    -ms-flex-pack: end !important;
    justify-content: flex-end !important;
}

/* ========================================
   ВИРІВНЮВАННЯ ІКОНОК ХЕДЕРА І ФУТЕРА
   Однаковий відступ від правого краю (40px)
   ======================================== */

@media (min-width: 992px) {
    /* ХЕДЕР: відступ іконок від правого краю */
    .lc-header-bottom-bar .lc-bottom-bar-right {
        margin-right: 40px;
    }
    
    /* ФУТЕР: скидаємо Bootstrap padding */
    .copyright-wrap .row > .col-lg-6:last-child {
        padding-right: 0 !important;
    }

}

/* Центрування на мобільних */
@media (max-width: 991px) {
    .lc-footer-social-wrap,
    .lc-footer-social-wrap.justify-content-lg-end {
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        -ms-flex-pack: center !important;
        justify-content: center !important;
        padding-right: 0;
    }
}

/* Базові стилі для футера - кросбраузерне */
.copyright-wrap .lc-social-footer.lc-social-icons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    
    gap: 10px;
    
    /* Fallback для браузерів без підтримки gap */
    margin: 0 -5px;
}

.copyright-wrap .lc-social-footer.lc-social-icons .lc-social-link {
    margin: 0 5px; /* Fallback для gap */
}

/* Сучасні браузери з підтримкою gap */
@supports (gap: 10px) {
    .copyright-wrap .lc-social-footer.lc-social-icons {
        margin: 0;
    }
    .copyright-wrap .lc-social-footer.lc-social-icons .lc-social-link {
        margin: 0;
    }
}

.copyright-wrap .lc-social-footer .lc-social-link {
    font-size: 18px;
    color: #ffffff;
}

/* Default стиль - без фону */
.copyright-wrap .lc-social-footer.lc-social-style-default .lc-social-link {
    padding: 0;
    background: transparent !important;
}

/* Rounded стиль - круглі */
.copyright-wrap .lc-social-footer.lc-social-style-rounded .lc-social-link {
    border-radius: 50%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Square стиль - квадратні */
.copyright-wrap .lc-social-footer.lc-social-style-square .lc-social-link {
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hover ефекти для футера */
.copyright-wrap .lc-social-footer .lc-social-link:hover {
    transform: translateY(-2px);
}

.copyright-wrap .lc-social-footer.lc-social-style-default .lc-social-link:hover {
    color: #FF6B00;
}

.copyright-wrap .lc-social-footer.lc-social-style-rounded .lc-social-link:hover,
.copyright-wrap .lc-social-footer.lc-social-style-square .lc-social-link:hover {
    color: #1E3A4C;
    background-color: #FF6B00;
}

/* Active ефекти для футера */
.copyright-wrap .lc-social-footer .lc-social-link:active {
    transform: translateY(0) scale(0.95);
}

.copyright-wrap .lc-social-footer.lc-social-style-rounded .lc-social-link:active,
.copyright-wrap .lc-social-footer.lc-social-style-square .lc-social-link:active {
    background-color: #cc5500;
}

/* ========================================
   СОЦІАЛЬНІ МЕРЕЖІ - ГЛОБАЛЬНІ (fallback)
   ======================================== */

/* Звичайний стиль (без фону) */
.lc-social-style-default .lc-social-link {
    padding: 0;
    background: none !important;
}

/* Круглі іконки */
.lc-social-style-rounded .lc-social-link {
    border-radius: 50%;
    padding: 10px;
}

/* Квадратні іконки */
.lc-social-style-square .lc-social-link {
    border-radius: 5%;
    padding: 10px;
}

/* Hover ефект - підйом */
.lc-social-link:hover {
    transform: translateY(-2px);
}

/* Active ефект - натискання */
.lc-social-link:active {
    transform: translateY(0) scale(0.95);
}

/* ========================================
   АДАПТИВНІСТЬ
   ======================================== */

/* Tablet */
@media (max-width: 991px) {
    .lc-header-contacts-inline {
        gap: 20px;
    }
    
    .lc-contact-item {
        gap: 10px;
    }
    
    .lc-contact-icon {
        font-size: 20px;
    }
    
    .lc-contact-heading {
        font-size: 14px;
    }
    
    .lc-contact-subtext {
        font-size: 13px;
    }
    
    .lc-social-icons {
        gap: 12px;
    }
    
    .lc-social-link {
        font-size: 18px;
    }
    
    .lc-social-style-rounded .lc-social-link,
    .lc-social-style-square .lc-social-link {
        padding: 8px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .lc-bottom-bar-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .lc-bottom-bar-left,
    .lc-bottom-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .lc-header-contacts-inline {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lc-contact-item {
        justify-content: center;
    }
    
    .lc-social-icons {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .lc-header-contacts-inline {
        gap: 12px;
    }
    
    .lc-contact-heading {
        font-size: 13px;
    }
    
    .lc-contact-subtext {
        font-size: 12px;
    }
    
    .lc-social-icons {
        gap: 10px;
    }
    
    .lc-social-link {
        font-size: 16px;
    }
    
    .lc-social-style-rounded .lc-social-link,
    .lc-social-style-square .lc-social-link {
        padding: 6px;
    }
}

/* ========================================
   АНІМАЦІЇ
   ======================================== */

.lc-contact-item {
    transition: transform 0.3s ease;
}

.lc-contact-item:hover {
    transform: translateX(3px);
}

.lc-contact-icon {
    transition: color 0.3s ease;
}

.lc-social-link {
    transition: all 0.3s ease;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.lc-social-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .lc-contact-item,
    .lc-contact-icon,
    .lc-social-link {
        transition: none;
    }
}

