/**
 * Beautiful Footer Menu Styles
 * Красиві стилі для меню футера з ефектами
 */

/* Основний контейнер красивого футера */
.beautiful-footer {
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
    color: #ffffff;
    padding: 0px 0 0px;
    position: relative;
    overflow: hidden;
    border-top: none;
}

/* Фоновий ефект */
.beautiful-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

/* Контейнер для контенту - горизонтальний */
.beautiful-footer-container {
    max-width: 100%;
    margin: 0;
    padding: 15px 30px 10px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    gap: 60px;
}

/* Секції футера */
.beautiful-footer-section {
    flex: 0 0 auto;
    min-width: 200px;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.beautiful-footer-section:first-child {
    flex: 1;
    text-align: center;
    margin-left: 20px;
}

.beautiful-footer-section:nth-child(2) {
    flex: 1;
    text-align: center;
}

.beautiful-footer-section:nth-child(3) {
    flex: 1;
    text-align: center;
}

.beautiful-footer-section:last-child {
    flex: 1;
    text-align: center;
}

/* Заголовки секцій */
.beautiful-footer-title {
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
    padding-bottom: 5px;
    text-align: center;
    width: 100%;
}

.beautiful-footer-section:first-child .beautiful-footer-title {
    text-align: center;
}

.beautiful-footer-title::after {
    display: none;
}

/* Меню футера */
.beautiful-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beautiful-footer-menu-item {
    margin-bottom: 8px;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beautiful-footer-menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beautiful-footer-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: left 0.3s ease;
    z-index: -1;
}

.beautiful-footer-menu-link:hover {
    color: #ffffff;
    background: transparent;
    transform: translateX(3px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beautiful-footer-menu-link:hover::before {
    left: 0;
}

/* Контактна інформація */
.beautiful-footer-contact {
    margin-bottom: 5px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: default;
}

.beautiful-footer-contact:hover {
    background: transparent;
    transform: translateY(-2px);
}

.beautiful-footer-contact:hover .beautiful-footer-contact-label {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.beautiful-footer-contact:hover .beautiful-footer-contact-value {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.beautiful-footer-section:first-child .beautiful-footer-contact {
    text-align: center;
}

.beautiful-footer-contact-label {
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.beautiful-footer-contact-value {
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* Контактные ссылки */
.beautiful-footer-contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beautiful-footer-contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.beautiful-footer-contact-link:visited {
    color: #ffffff;
}

/* Соціальні іконки */
.beautiful-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 13px;
    justify-content: center;
}

.beautiful-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.beautiful-footer-social-link:visited {
    color: #ffffff;
}

.beautiful-footer-social-link:hover {
    color: #4dabf7;
    transform: translateY(-2px);
}

.beautiful-footer-social-link:active {
    transform: translateY(0);
}

.beautiful-footer-social-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    z-index: 1;
    position: relative;
}

/* Анімації */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Адаптивність для планшетів */
@media (max-width: 768px) {
    .beautiful-footer {
        padding: 6px 0 0px;
    }
    
    .beautiful-footer-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .beautiful-footer-section {
        margin-bottom: 20px;
    }
    
    .beautiful-footer-title {
        font-size: 12px;
    }
    
    .beautiful-footer-menu-link {
        font-size: 12px;
        padding: 4px 7px;
    }
    
    .beautiful-footer-social {
        gap: 8px;
    }
    
    .beautiful-footer-social-link {
        width: 42px;
        height: 42px;
    }
    
    .beautiful-footer-social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .beautiful-footer-bottom {
        padding: 0px 15px 0px;
    }
}

/* Адаптивність для мобільних */
@media (max-width: 480px) {
    .beautiful-footer {
        padding: 10px 0 10px;
    }
    
    .beautiful-footer-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .beautiful-footer-section {
        margin-bottom: 15px;
        text-align: center;
        flex: none;
        width: 100%;
    }
    
    .beautiful-footer-section:first-child {
        display: none;
    }
    
    .beautiful-footer-title {
        font-size: 11px;
        text-align: center;
        width: 100%;
    }
    
    .beautiful-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .beautiful-footer-menu {
        text-align: center;
    }
    
    .beautiful-footer-menu-item {
        margin-bottom: 6px;
    }
    
    .beautiful-footer-menu-link {
        font-size: 11px;
        padding: 5px 11px;
        display: block;
        text-align: center;
    }
    
    .beautiful-footer-contact {
        text-align: center;
        padding: 6px 10px;
        margin-bottom: 8px;
    }
    
    .beautiful-footer-contact:hover {
        transform: translateY(-1px);
    }
    
    .beautiful-footer-contact-label {
        font-size: 10px;
    }
    
    .beautiful-footer-contact-value {
        font-size: 11px;
    }
    
    /* Скрываем социальные сети в мобильной версии футера */
    .beautiful-footer-section:nth-child(4) {
        display: none;
    }
    
    .beautiful-footer-social {
        display: none;
    }
}

/* Скрытие стандартного футера Astra */
.ast-small-footer,
.ast-footer-small-section,
.ast-small-footer-wrap,
footer#colophon,
.site-footer,
.footer-widgets-wrap,
.footer-widget-area {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Стилі для випадаючого меню в футері */
.beautiful-footer-dropdown {
    position: relative;
}

.beautiful-footer-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.beautiful-footer-dropdown:hover .beautiful-footer-submenu {
    display: block;
}

.beautiful-footer-submenu-link {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.beautiful-footer-submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Мобільна версія */
@media (max-width: 768px) {
    .beautiful-footer-submenu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        margin-top: 4px;
    }
    
    .beautiful-footer-submenu-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}
