/* ===================================================================
   FOOTER COMPONENT — History Explorers
   Нижний колонтитул: лого РМИ, соцсети, навигация, копирайт
   =================================================================== */

.site-footer {
    margin-top: 24px;
    padding: 16px 16px 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    background: transparent;
}

.site-footer-inner {
    max-width: 100%;
    margin: 0 auto;
}

/* --- Лого РМИ --- */
.site-footer-logo {
    margin-bottom: 10px;
}

.site-footer-logo-img {
    max-width: 110px;
    height: auto;
    border-radius: 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.site-footer-logo-img:hover {
    opacity: 1;
}

/* --- Соцсети --- */
.site-footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.site-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #777;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.site-footer-social:hover {
    color: #2481cc;
    background-color: rgba(36, 129, 204, 0.08);
}

.site-footer-social svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.site-footer-social-sep {
    color: #ddd;
    user-select: none;
    font-size: 14px;
}

/* --- Разделитель --- */
.site-footer-divider {
    width: 50%;
    max-width: 240px;
    height: 1px;
    background: #e2e8f0;
    margin: 0 auto 8px;
}

/* --- Навигационные ссылки --- */
.site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.site-footer-links a {
    color: #2481cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.2s;
}

.site-footer-links a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.site-footer-link-sep {
    color: #ccc;
    user-select: none;
}

/* --- Копирайт --- */
.site-footer-copy {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
}

/* В Telegram WebApp footer не нужен */
body.telegram-app .site-footer {
    display: none;
}
