/* Mobile Navigation Styles - Consolidated */

/* Full-Screen Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Content - Full Screen */
.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E5E5;
    background: white;
    flex-shrink: 0;
}

.mobile-menu-header .logo {
    width: 200px;
    height: 88px;
    display: flex;
    align-items: center;
}

.mobile-menu-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Font Size Controls in Mobile Menu */
.mobile-menu-font-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.mobile-menu-font-btn {
    background: none;
    border: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #5C068C;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
}

.mobile-menu-font-btn.active {
    background:var(--color-primary);
    color: white;
    border-radius: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 40px;
    color: #9958B6;
    cursor: pointer;
    padding: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background: rgba(153, 88, 182, 0.1);
    transform: scale(1.1);
}

/* Mobile Navigation */
.mobile-nav {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    flex-direction: column;
}

.mobile-nav-list li {
    flex: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted #C47DBA;
    min-height: 40px;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

/* Language link styling - no dotted border */
.mobile-nav-list li:last-child .mobile-nav-link.language-link {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color:--color-primary-light;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
    font-weight: var(--font-weight-black);
}

.mobile-nav-link:hover {
    background: rgba(92, 6, 140, 0.05);
}

/* Active link styling */
.mobile-nav-link.active {
    background:var(--color-primary-light);
    color: white;
    font-weight: 900;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #C47DBA;
}

/* Language link special styling */
.mobile-nav-link.language-link {
    color: #5C068C;
    font-weight: 600;
    border-bottom: none;
    margin-top: auto;
    border-top: 2px solid #E5E5E5;
}

.mobile-nav-link.language-link:hover {
    background: rgba(92, 6, 140, 0.05);
}

/* Responsive Design */
@media (max-width: 1130px) {
    
    .mobile-menu-header {
        padding: 16px 20px;
    }
    
    .mobile-menu-header .logo {
        width: 200px;
        height: 88px;
    }
    
    .mobile-menu-close {
        font-size: 75px;
        width: 87px;
        height: 87px;
        font-weight: 450;
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 18px 20px;
        min-height: 56px;
    }
    
    .mobile-nav-list li {
        min-height: 56px;
    }
    .hamburger-line {
        width: 40px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-header {
        padding: 14px 16px;
    }
    
    .mobile-menu-header .logo {
        width: 180px;
        height: 79px;
    }
    
    .mobile-menu-close {
        font-size: 75px;
        width: 87px;
        height: 87px;
        font-weight: 450;
    }
    
    .mobile-nav-link {
        font-size: 15px;
        padding: 16px 16px;
        min-height: 52px;
    }
    
    .mobile-nav-list li {
        min-height: 52px;
    }
    
    .hamburger-line {
        width: 40px;
        height: 4px;
    }
}

/* Animation for menu items */
.mobile-nav-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.3s ease forwards;
}

.mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-list li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-list li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-list li:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-list li:nth-child(7) { animation-delay: 0.4s; }
.mobile-nav-list li:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide mobile menu when closed */
.mobile-menu-overlay:not(.active) .mobile-nav-list li {
    animation: none;
    opacity: 0;
    transform: translateX(-20px);
}

/* Focus styles for accessibility */
.mobile-nav-link:focus {
    outline: 2px solid #C47DBA;
    outline-offset: 2px;
}

.mobile-menu-close:focus {
    outline: 2px solid #C47DBA;
    outline-offset: 2px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #C47DBA;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-nav-link {
        border: 1px solid transparent;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:focus {
        border-color:var(--color-primary-light);
    }
    
    .mobile-nav-link.active {
        border-color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-menu-content,
    .hamburger-line,
    .mobile-nav-list li {
        transition: none;
        animation: none;
    }
    
    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0);
    }
}
