/* Mobile Navigation Styles */

/* Hamburger menu button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(19, 127, 236, 0.5);
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when open */
.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile navigation menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 12, 14, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 24px 24px 24px;
}

.mobile-nav.active {
    display: block;
    right: 0;
}

/* Mobile navigation links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    background: rgba(19, 127, 236, 0.1);
    border-color: rgba(19, 127, 236, 0.3);
    color: #137fec;
}

.mobile-nav-links .material-symbols-outlined {
    font-size: 20px;
}

/* Mobile auth buttons */
.mobile-auth-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-button {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-auth-button.login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.mobile-auth-button.login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-auth-button.register,
.mobile-auth-button.logout {
    background: #137fec;
    border: none;
    color: white;
}

.mobile-auth-button.register:hover,
.mobile-auth-button.logout:hover {
    background: #0f6bca;
}

/* User info in mobile menu */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(19, 127, 236, 0.1);
    border: 1px solid rgba(19, 127, 236, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.mobile-user-info .material-symbols-outlined {
    font-size: 32px;
    color: #137fec;
}

.mobile-user-info .user-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }
}

/* Responsive adjustments for language switcher on mobile */
@media (max-width: 768px) {
    .language-switcher {
        position: relative !important;
    }
    
    #language-switcher .language-dropdown {
        right: 0 !important;
        left: auto !important;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
