/* Основные стили футера */

.site-footer {
    --footer-padding: clamp(20px, 5vw, 40px);
    --footer-gap: clamp(15px, 2vw, 20px);

    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(106, 90, 255, 0.1);
    padding: var(--footer-padding);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-top: auto; /* Добавляем автоматический отступ сверху */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--footer-gap);
}

/* Верхняя часть - иконка и описание в одну строку */
.footer-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo i {
    color: white;
    font-size: 14px;
}

.footer-description {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Социальные иконки справа */
.footer-social-top {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(106, 90, 255, 0.1);
    opacity: 1;
}

/* Основной контент - ссылки в горизонтальную линию */
.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    margin-bottom: 20px;
}

.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 3vw, 30px);
    align-items: center;
}

.footer-links-inline a {
    color: var(--text-light);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.footer-links-inline a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Дополнительная информация внизу */
.footer-disclaimer {
    text-align: center;
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Кнопка наверх */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        text-align: center;
    }

    .footer-top .footer-social-top {
        margin-left: 0;
        align-self: center;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .back-to-top {
        bottom: calc(2rem + 40px);
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Поддержка тёмной/светлой темы */
.light-theme .site-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(106, 90, 255, 0.2);
}

.light-theme .footer-links-inline a,
.light-theme .footer-description,
.light-theme .footer-disclaimer {
    color: var(--text-dark);
}

.light-theme .social-link {
    color: var(--text-dark);
}

.light-theme .footer-disclaimer {
    border-top-color: rgba(106, 90, 255, 0.2);
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .footer-disclaimer {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .footer-links-inline {
        gap: 10px;
    }

    .footer-links-inline a {
        font-size: 0.9rem;
    }
}

/* ... (Старые стили оставляем, заменяем секцию "Дополнительная информация внизу" и добавляем новые) ... */

/* Нижняя строка с дисклеймером и билдом */
.footer-bottom-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(106, 90, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-disclaimer {
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 70%;
}

/* Стиль для номера билда */
.build-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(106, 90, 255, 0.05);
    border: 1px solid rgba(106, 90, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Consolas', monospace; /* Моноширинный шрифт для цифр */
    transition: all 0.3s ease;
}

.build-link:hover {
    background: rgba(106, 90, 255, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.build-link i {
    font-size: 0.75rem;
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column-reverse; /* Билд будет под дисклеймером или над ним, зависит от вкуса. Тут сделал чтобы билд был снизу */
        text-align: center;
        gap: 20px;
    }

    .footer-disclaimer {
        max-width: 100%;
        text-align: center;
    }

    .build-link {
        width: auto;
        justify-content: center;
    }
}