/* Enhanced Mobile Menu Styles */

/* Основные стили для мобильного меню */
.mobile-navigation-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    color: white;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 280px; /* СИЛЬНО сдвигаем контент вниз */
}

/* Показывать меню */
.mobile-navigation-menu.show {
    right: 0px;
}

/* Стили для кнопок языков в мобильном меню */
.mobile-lang-btn {
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.mobile-lang-btn.active {
    background: linear-gradient(135deg, #ffcc00, #ffd700) !important;
    border-color: #ffcc00 !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4) !important;
    transform: translateY(0) scale(1) !important;
}

.mobile-lang-btn.active:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5) !important;
}

/* Анимация для иконок флагов */
.mobile-lang-btn span:first-child {
    transition: transform 0.3s ease;
}

.mobile-lang-btn:hover span:first-child {
    transform: scale(1.2) rotate(5deg);
}

.mobile-lang-btn.active span:first-child {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Стили для навигационных ссылок */
.mobile-navigation-menu nav a {
    position: relative;
    overflow: hidden;
}

.mobile-navigation-menu nav a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-navigation-menu nav a:hover::before {
    left: 100%;
}

/* Улучшенная анимация для кнопки закрытия */
.mobile-navigation-menu button {
    position: relative;
    overflow: hidden;
}

.mobile-navigation-menu button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mobile-navigation-menu button:hover::before {
    width: 40px;
    height: 40px;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .mobile-navigation-menu nav {
        margin-bottom: 40px !important;
    }
    
    .mobile-navigation-menu nav a {
        font-size: 18px !important;
        padding: 14px 0 !important;
    }
    
    .mobile-lang-btn {
        min-height: 50px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .mobile-lang-btn span:first-child {
        font-size: 14px !important;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .mobile-navigation-menu {
        background: rgba(0, 0, 0, 0.98);
    }
}

/* Анимация появления меню */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-navigation-menu.animated {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Стили для скролла на мобильных устройствах */
.mobile-navigation-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-navigation-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mobile-navigation-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-navigation-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Безопасная зона для iPhone */
@supports (padding: max(0px)) {
    .mobile-navigation-menu {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}


