/**
 * 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;
}

/* Buttons in footer */
.beautiful-footer-button,
.beautiful-footer .button,
.beautiful-footer .btn,
.beautiful-footer input[type="button"],
.beautiful-footer input[type="submit"],
.beautiful-footer a.button {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beautiful-footer-button::before,
.beautiful-footer .button::before,
.beautiful-footer .btn::before,
.beautiful-footer input[type="button"]::before,
.beautiful-footer input[type="submit"]::before,
.beautiful-footer a.button::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: 0;
}

.beautiful-footer-button:hover,
.beautiful-footer .button:hover,
.beautiful-footer .btn:hover,
.beautiful-footer input[type="button"]:hover,
.beautiful-footer input[type="submit"]:hover,
.beautiful-footer a.button:hover {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.beautiful-footer-button:hover::before,
.beautiful-footer .button:hover::before,
.beautiful-footer .btn:hover::before,
.beautiful-footer input[type="button"]:hover::before,
.beautiful-footer input[type="submit"]:hover::before,
.beautiful-footer a.button:hover::before {
    left: 0;
}

.beautiful-footer-button:active,
.beautiful-footer .button:active,
.beautiful-footer .btn:active,
.beautiful-footer input[type="button"]:active,
.beautiful-footer input[type="submit"]:active,
.beautiful-footer a.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beautiful-footer-button:focus,
.beautiful-footer .button:focus,
.beautiful-footer .btn:focus,
.beautiful-footer input[type="button"]:focus,
.beautiful-footer input[type="submit"]:focus,
.beautiful-footer a.button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Соціальні іконки */
.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);
    }
}

/* Adaptive responsiveness for tablets */
@media (max-width: 768px) {
    .beautiful-footer {
        padding: 12px 0 15px;
    }
    
    .beautiful-footer-container {
        padding: 0 20px;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .beautiful-footer-section {
        margin-bottom: 0;
        flex: 1 1 45%;
        min-width: 250px;
        text-align: center;
    }
    
    .beautiful-footer-section:nth-child(3),
    .beautiful-footer-section:nth-child(4) {
        flex: 1 1 45%;
        min-width: 200px;
    }
    
    .beautiful-footer-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .beautiful-footer-menu-link {
        font-size: 12px;
        padding: 6px 10px;
        margin: 4px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .beautiful-footer-menu-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .beautiful-footer-contact {
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
        margin-bottom: 6px;
    }
    
    .beautiful-footer-contact:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .beautiful-footer-contact-label {
        font-size: 11px;
        font-weight: 600;
    }
    
    .beautiful-footer-contact-value {
        font-size: 12px;
    }
    
    .beautiful-footer-social {
        gap: 10px;
        margin-top: 12px;
    }
    
    .beautiful-footer-social-link {
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .beautiful-footer-social-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }
    
    .beautiful-footer-social-link svg {
        width: 18px;
        height: 18px;
    }
    
    /* Buttons in tablet version */
    .beautiful-footer-button,
    .beautiful-footer .button,
    .beautiful-footer .btn,
    .beautiful-footer input[type="button"],
    .beautiful-footer input[type="submit"],
    .beautiful-footer a.button {
        padding: 9px 18px;
        font-size: 12px;
        margin: 6px 4px;
        border-radius: 20px;
    }
}

/* Адаптивність для мобільних */
@media (max-width: 480px) {
    .beautiful-footer {
        padding: 15px 0 20px;
    }
    
    .beautiful-footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .beautiful-footer-section {
        margin-bottom: 0;
        text-align: center;
        flex: none;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .beautiful-footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .beautiful-footer-title {
        font-size: 12px;
        text-align: center;
        width: 100%;
        margin-bottom: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .beautiful-footer-menu {
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .beautiful-footer-menu-item {
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .beautiful-footer-menu-link {
        font-size: 12px;
        padding: 8px 12px;
        display: inline-block;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .beautiful-footer-menu-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }
    
    .beautiful-footer-contact {
        text-align: center;
        padding: 8px 0;
        margin-bottom: 0;
        background: transparent;
        border-radius: 0;
    }
    
    .beautiful-footer-contact:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-1px);
        border-radius: 8px;
    }
    
    .beautiful-footer-contact-label {
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 4px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .beautiful-footer-contact-value {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Buttons in mobile */
    .beautiful-footer-button,
    .beautiful-footer .button,
    .beautiful-footer .btn,
    .beautiful-footer input[type="button"],
    .beautiful-footer input[type="submit"],
    .beautiful-footer a.button {
        padding: 10px 20px;
        font-size: 13px;
        margin: 8px 0;
        display: inline-block;
        width: auto;
        min-width: 120px;
        text-align: center;
        border-radius: 25px;
    }
    
    /* Соціальні мережі в мобільній версії */
    .beautiful-footer-section:nth-child(4) {
        display: block;
    }
    
    .beautiful-footer-social {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }
    
    .beautiful-footer-social-link {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .beautiful-footer-social-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .beautiful-footer-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Скрытие стандартного футера 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;
    }
}

/* Плавна прокрутка для сторінки */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
