/* ============================================================================
   FOOTER CSS for dubrovin.kz
   Подвал сайта с ссылками и информацией
   ============================================================================ */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
    margin-top: var(--spacing-4xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.footer__section h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-inverse);
}

.footer__section p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color var(--transition);
    padding: var(--spacing-xs) 0;
}

.footer__links a:hover {
    color: var(--primary-light);
}

/* Социальные ссылки */
.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.footer__social-link:hover {
    background-color: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

/* Нижняя часть футера */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-sm);
}

.footer__legal {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer__legal a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--primary-light);
}

/* Кнопка "Наверх" */
.footer__back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer__back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.footer__back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Анимация */
@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer.animate {
    animation: footerSlideUp 0.8s ease-out;
}

/* Адаптивность */
@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer__social {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .footer__content {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-3xl);
    }
    
    .footer {
        padding: var(--spacing-4xl) 0 var(--spacing-xl) 0;
    }
}

/* Темная тема (футер всегда темный) */
[data-theme="dark"] .footer {
    background-color: #000000;
}

/* Отключение анимации */
@media (prefers-reduced-motion: reduce) {
    .footer.animate {
        animation: none;
    }
    
    .footer__social-link:hover {
        transform: translateY(0);
    }
    
    .footer__back-to-top:hover {
        transform: translateY(0);
    }
}
