/* Mobile Header Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #162134;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background-color: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E7E7E7;
}

.drawer-close {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #162134;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.close-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.drawer-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu nav ul li {
    border-bottom: 1px solid #F0F0F0;
}

.drawer-menu nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #162134;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.drawer-menu nav ul li a:hover {
    background-color: #F8F9FA;
}

.mobile-submenu-item {
    position: relative;
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-submenu-item.active .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #F8F9FA;
}

.mobile-submenu-item.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu a {
    padding: 12px 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666 !important;
    border-bottom: none !important;
}

.mobile-submenu a:hover {
    background-color: #E9ECEF !important;
}

.drawer-buttons {
    padding: 20px;
    border-top: 1px solid #E7E7E7;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-buttons .btn {
    width: 100%;
    justify-content: center;
}

.drawer-buttons .language-selector {
    width: 100%;
}

.drawer-buttons .language-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-container .menu {
        display: none;
    }
    
    .drawer-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .drawer-content {
        width: 100%;
    }
}