/* <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;
}

/* ===== КНОПКИ TELEGRAM В ФУТЕРЕ ===== */
.footer-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.footer-telegram-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5);
    background: linear-gradient(135deg, #229ED9, #0088cc);
    color: white;
}

.footer-telegram-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Разные стили для кнопок */
.footer-telegram-btn-subscribe {
    background: linear-gradient(135deg, #0088cc, #229ED9);
}

.footer-telegram-btn-subscribe:hover {
    background: linear-gradient(135deg, #229ED9, #42B4E6);
}

.footer-telegram-btn-write {
    background: linear-gradient(135deg, #00B140, #00D853);
}

.footer-telegram-btn-write:hover {
    background: linear-gradient(135deg, #00D853, #00E676);
}

/* Стили для навигации в футере */
footer ul li a {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

footer ul li a:not(.footer-telegram-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

footer ul li a:not(.footer-telegram-btn):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;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА TELEGRAM ===== */
.telegram-floating-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Основная кнопка */
.telegram-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: telegram-pulse 2s infinite;
}

.telegram-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.6);
}

.telegram-floating-icon {
    width: 32px;
    height: 32px;
    color: white;
}

/* Анимация пульсации */
@keyframes telegram-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 136, 204, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    }
}

/* Контейнер опций */
.telegram-floating-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.telegram-floating-wrapper:hover .telegram-floating-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Опции */
.telegram-floating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: #0088cc;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.telegram-floating-option:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    color: #0088cc;
}

.telegram-option-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.telegram-option-text {
    font-size: 14px;
}

/* Разные цвета для опций */
.telegram-option-channel:hover {
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
}

.telegram-option-channel:hover .telegram-option-icon {
    color: white;
}

.telegram-option-manager:hover {
    background: linear-gradient(135deg, #00B140, #00D853);
    color: white;
}

.telegram-option-manager:hover .telegram-option-icon {
    color: white;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .telegram-floating-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    .telegram-floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .telegram-floating-icon {
        width: 28px;
        height: 28px;
    }
    
    .telegram-floating-option {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .telegram-option-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Кнопки в футере на мобильных */
    .footer-telegram-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .footer-telegram-btn-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .telegram-floating-wrapper {
        bottom: 15px;
        right: 15px;
    }
    
    .telegram-floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .telegram-floating-icon {
        width: 26px;
        height: 26px;
    }
}

/* 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;
}