/* ========================================
   HADITH FOOTER
   ======================================== */
.hadith-footer {
    background: #1f2937;
    border-top: none;
    padding: 32px 24px;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.hadith-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Копирайт + название модуля */
.hadith-footer-brand {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    white-space: nowrap;
}

/* Ссылки */
.hadith-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hadith-footer-link {
    font-size: 13px;
    color: var(--emerald-light, #6ee7b7);
    text-decoration: none;
    transition: color 0.15s;
}
.hadith-footer-link:hover { color: var(--gold-light, #fde68a); }

/* Блок переключателя языка */
.hadith-footer-lang {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* Переопределяем lang-trigger для тёмного фона */
.hadith-footer-lang .lang-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
}

.hadith-footer-lang .lang-trigger:hover,
.hadith-footer-lang .lang-trigger.open {
    border-color: var(--emerald-light, #6ee7b7);
    color: var(--emerald-light, #6ee7b7);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

/* Дропдаун открывается ВВЕРХ */
.hadith-footer-lang .lang-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    transform-origin: bottom center;
    transform: translateY(6px) scale(0.97);
    left: 50%;
    right: auto;
    translate: -50%;
}

.hadith-footer-lang .lang-dropdown.open {
    transform: translateY(0) scale(1);
    translate: -50%;
}

/* Адаптив */
@media (max-width: 640px) {
    .hadith-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .hadith-footer-lang {
        justify-content: center;
    }
    .hadith-footer-lang .lang-dropdown {
        left: 50%;
        translate: -50%;
    }
}
