/* Стили для витрины open-space */

html {
    overflow-y: scroll;
}

body.open-space-shell {
    /*
     * Public showcase uses the same static shell background as Space/LK.
     * Moving a 400% full-page gradient forced continuous repaint/compositing
     * behind the transparent map tiles, which is particularly expensive on
     * mobile GPUs.
     */
    background: linear-gradient(-45deg, #556a71, #22281f, #1c1f20, #181a1b);
    background-position: center;
    background-size: auto;
    animation: none !important;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #f5f4ef;
}

/* === Шапка убрана — навигация внизу === */
.header {
    display: none;
}

/* === Контент === */
#content-container {
    transition: opacity 0.2s ease-in-out;
    min-height: 60vh;
}

#content-container.content-loading {
    opacity: 0;
}

/* === Старый footer скрыт — заменён навбаром === */
.footer {
    display: none;
}

/* === Навигация (фиксированная внизу) === */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(10, 12, 13, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(177, 151, 45, 0.12);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(177, 151, 45, 0.45);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    padding: 6px 32px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.6;
}
.mobile-nav-item.active {
    color: #ffe066;
}
.mobile-nav-item:hover {
    color: #b1972d;
}
.mobile-nav-item:active {
    opacity: 0.7;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .mobile-nav {
        justify-content: space-around;
    }
    .mobile-nav-item {
        padding: 6px 12px;
    }
}

@media (max-width: 380px) {
    .mobile-nav-item {
        font-size: 9px;
        padding: 6px 8px;
    }
    .mobile-nav-item svg {
        width: 18px;
        height: 18px;
    }
}

/* === Кнопка языка в навбаре === */
#lang-switcher {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* === Dropdown выбора языка === */
.lang-dropdown {
    display: none;
    position: fixed;
    bottom: 54px;
    right: 8px;
    background: rgba(10, 12, 13, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(177, 151, 45, 0.25);
    border-radius: 12px;
    padding: 6px;
    z-index: 9500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    min-width: 140px;
}
.lang-dropdown.open {
    display: flex;
    flex-direction: column;
    animation: langDropUp 0.2s ease-out;
}
@keyframes langDropUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: rgba(245, 244, 239, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.lang-option:hover {
    background: rgba(177, 151, 45, 0.12);
    color: #ffe066;
}
.lang-option.active {
    color: #ffe066;
    font-weight: 600;
}

/* === Анимация загрузки перевода === */
@keyframes langPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Loader overlay styles are created inline by JS */
