/* ============================================
   НОВЫЙ МИНИМАЛИСТИЧНЫЙ FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, rgba(15, 14, 11, 0.95) 0%, rgba(10, 9, 7, 0.98) 100%);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding: 1.5rem 0;
    margin-top: auto;
    position: relative;
    z-index: 2200;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Основная строка */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Copyright */
.footer-copyright {
    color: rgba(181, 168, 146, 0.7);
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

/* Социальные ссылки */
.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.25);
    color: rgba(201, 169, 97, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.5);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Возрастной рейтинг */
.footer-age-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 32px;
}

/* Язык */
.footer-lang {
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(201, 169, 97, 0.25);
    background: rgba(15, 14, 11, 0.5);
    color: rgba(229, 220, 208, 0.85);
    border-radius: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
}

.lang-dropdown-btn:hover {
    border-color: rgba(201, 169, 97, 0.5);
    background: rgba(15, 14, 11, 0.7);
    color: var(--text-light);
}

.lang-dropdown-current {
    font-weight: 500;
}

.lang-dropdown-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    background: #1a1813;
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 0.3rem;
    padding: 0.4rem;
    list-style: none;
    min-width: 70px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lang-dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lang-dropdown-item {
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
    text-align: center;
}

.lang-dropdown-item:hover {
    background: rgba(201, 169, 97, 0.2);
}

.lang-dropdown-option {
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Нижняя строка */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(201, 169, 97, 0.08);
    flex-wrap: wrap;
}

/* Юридические ссылки */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: rgba(181, 168, 146, 0.6);
    font-size: 0.65rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-legal-link:hover {
    color: var(--primary-color);
}

.footer-legal-separator {
    color: rgba(181, 168, 146, 0.3);
    font-size: 0.65rem;
}

/* Автор */
.footer-author {
    display: flex;
    align-items: center;
}

.footer-author-link {
    color: rgba(181, 168, 146, 0.5);
    font-size: 0.65rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-author-link:hover {
    color: rgba(181, 168, 146, 0.8);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты (768px - 1023px) */
@media (max-width: 1023px) {
    .footer {
        padding: 1.2rem 0;
    }

    .footer-main {
        gap: 0.8rem;
    }

    .footer-left {
        gap: 0.8rem;
    }

    .footer-bottom {
        padding-top: 0.6rem;
        gap: 0.8rem;
    }
}

/* Мобильные (до 767px) */
@media (max-width: 767px) {
    .footer {
        padding: 1rem 0;
    }

    .footer-content {
        gap: 0.6rem;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .footer-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.6rem;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-top: 0.6rem;
    }

    .footer-legal {
        width: 100%;
        justify-content: center;
    }

    .footer-author {
        width: 100%;
        justify-content: center;
    }
}

/* Очень маленькие экраны (до 374px) */
@media (max-width: 374px) {
    .footer-copyright {
        font-size: 0.7rem;
    }

    .footer-social-link {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    .footer-age-rating {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        min-width: 28px;
    }

    .lang-dropdown-btn {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        min-width: 44px;
    }

    .footer-legal-link,
    .footer-legal-separator,
    .footer-author-link {
        font-size: 0.6rem;
    }
}

/* Большие экраны (1440px+) */
@media (min-width: 1440px) {
    .footer {
        padding: 1.8rem 0;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-social-link {
        font-size: 0.75rem;
    }

    .footer-age-rating {
        font-size: 0.75rem;
    }

    .lang-dropdown-btn {
        font-size: 0.75rem;
    }

    .footer-legal-link,
    .footer-author-link {
        font-size: 0.7rem;
    }
}
