/* /css/components/footer.css */

.main-footer {
    position: relative;
    padding: 6rem 2rem 7rem;
    box-sizing: border-box;
    background-color: var(--bg-color-darker);
    color: var(--text-color-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.footer-column h3 {
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    text-decoration: none;
    color: var(--text-color-muted);
    margin-bottom: 0.85rem;
    transition: color 0.3s ease;
    width: fit-content;
}

.footer-column a:hover {
    color: var(--text-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 2rem;
}

.footer-bottom h1 {
    font-family: "sansation", sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.8;
    margin: 0;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.footer-bottom .copyright {
    font-size: 0.875rem;
    color: #aaa;
    text-align: right;
    line-height: 1.5;
}

.developer-credit {
    color: #ffffff1f;
    font-family: 'auto', sans-serif;
    font-style: italic;
    
    margin: 0;
    text-align: right;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-color-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-color);
}

.footer-language-switcher {
    position: relative;
    display: inline-block;
    z-index: 10;
}



/* --- Стили для переключателя языка --- */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 17px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    /* Убирает синюю подсветку на мобильных */
}

.current-lang:hover,
.language-switcher.active .current-lang {
    background-color: rgba(255, 255, 255, 0.2);
}

.current-lang:active {
    transform: scale(0.95);
}

.current-lang svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.current-lang span {
    text-transform: uppercase;
}

.lang-options {
    position: absolute;
    bottom: calc(100% + 10px);
    /* Появляется над кнопкой */
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    filter: blur(1px);
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 100;
}

.language-switcher.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    filter: blur(0px);
}

.lang-option {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: 'Inter', sans-serif;
}


[data-lang-key] {
    /* Добавляем !important, чтобы этот стиль ничего не могло перебить */
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out !important;
}

.lang-fade-out {
    opacity: 0;
    transform: translateY(-2px);
    filter: blur(2px);
}

.lang-fade-in {
    opacity: 1;
    transform: translateY(0);
}





.footer-socials {
    display: flex;
    gap: 0.3rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;    /* белый круг */
    border-radius: 50%;          /* делаем круг */
    text-decoration: none;       /* убираем полоску снизу */
    color: white;        /* чёрная иконка */
    font-size: 18px;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .footer-socials i {
    pointer-events: none;        /* чтобы клик ловил <a>, а не <i> */
  }

@media (max-width: 893px) {
    .main-footer {
        padding: 4rem 1.5rem 6rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-bottom .copyright {
        text-align: left;
    }

    .footer-legal {
        flex-direction: row;
        align-items: center;
    }

    .copyright {
        margin-bottom: 0;
    }

    .developer-credit {
        color: #ffffff1f;
        font-family: 'Ar',sans-serif;
        font-size: smaller;
        margin: 0;
        text-align: left;
    }
}