/* <FILE>shared/footer.css</FILE> */

/* Стили для футера */
footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    border-radius: 2rem 2rem 0 0;
    margin-top: 2rem;
}

footer a:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Стили для кнопки показать контакты */
#footerShowContactsBtn {
    transition: all 0.3s ease;
}

#footerShowContactsBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Анимация появления контактов */
#footerContactsContainer {
    transition: all 0.4s ease;
}

#footerContactsContainer.footer-contacts-show {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для контактной карточки */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.footer-contact-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.footer-contact-card h3 {
    color: white !important;
    font-weight: 600 !important;
}

.footer-contact-card a {
    color: rgb(147, 197, 253) !important;
    text-decoration: none !important;
}

.footer-contact-card a:hover {
    color: white !important;
}

.footer-contact-card svg {
    color: rgb(147, 197, 253) !important;
}

/* Стили для навигации в футере */
footer ul li a {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

footer ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

footer ul li a:hover::after {
    width: 100%;
}

/* Стили для адресных блоков */
footer .space-y-6 > div {
    transition: transform 0.2s ease;
}

footer .space-y-6 > div:hover {
    transform: translateX(5px);
}

/* Стили для навигационных разделов */
footer nav ul li {
    transition: transform 0.2s ease;
}

footer nav ul li:hover {
    transform: translateX(3px);
}

/* Улучшенная типографика для заголовков разделов */
footer h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Стили для границ основного контента и копирайта */
.footer-main-border {
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.footer-copyright-border {
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Responsive стили для мобильных устройств */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer h3 {
        text-align: center;
    }
    
    footer nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    footer .space-y-6 {
        text-align: center;
    }
    
    footer .flex.items-start {
        justify-content: center;
    }
}

/* Дополнительные стили для лучшей читаемости */
footer nav ul li a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Анимация при загрузке страницы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer > div > div {
    animation: fadeInUp 0.6s ease-out;
}

/* Стили для активных ссылок */
footer nav ul li a.active {
    color: #ffffff;
    font-weight: 600;
}

footer nav ul li a.active::after {
    width: 100%;
    background-color: #60A5FA;
}