/* Fixes hamburger positioning - positioned on the right */
.hamburger {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    right: 15px; /* Position on right side of screen */
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 5px; /* Slightly smaller padding */
    z-index: 1001; /* Ensures it's above other elements */
    width: auto; /* Auto width */
    /* iOS Safari specific fixes */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Minimum recommended touch target size */
    min-width: 44px;
    min-height: 44px;
    /* Remove background box */
    background: transparent;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.hamburger:active {
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(0.95);
}

.bar {
    width: 22px;
    height: 3px;
    background-color: #333;
    margin: 2px 0; /* Changed from 1px and removed negative positioning */
    transition: 0.3s ease;
    border-radius: 1px;
}

/* Mobile Navigation Menu */
.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px; /* Position below hamburger */
    right: 15px; /* Align with hamburger on right */
    width: 40px; /* Auto width to fit content */
    min-width: 20px; /* Minimum width */
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    text-align: left; /* Left align for better readability */
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Prevent text wrapping */
}
.nav-menu.active {
    display: flex;
}

/* Mobile language options */
.mobile-language-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.mobile-language-options a {
    padding: 5px;
    text-decoration: none;
    color: black;
}

.mobile-language-options a.active {
    font-weight: bold;
    color: green;
    border-left: 3px solid green;
    padding-left: 7px;
}

.menu-divider {
    width: 100%;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* User Menu (Right Side) */
.user-menu {
    margin-left: auto !important; /* Push to the right */
    display: flex !important;
    gap: 1px;
    align-items: right;
}

.user-menu a {
    color: black;
    text-decoration: none;
    padding: 5px;
    white-space: nowrap;
    font-size: 16px;
}

.user-menu a:hover {
    color: gray;
}

.user-menu a.danger {
    color: red;
}

.user-menu a.danger:hover {
    color: darkred;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important; /* Show on mobile */
        position: absolute; /* Maintain absolute positioning on mobile */
        /* Ensure even better touch target on small screens */
        min-width: 48px;
        min-height: 48px;
        padding: 8px; /* Adjust padding for mobile */
        right: 10px; /* Position on right side for mobile */
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Center vertically */
        width: auto; /* Maintain auto width on mobile */
    }

    /* Hide desktop user menu on mobile */
    .user-menu {
        display: none !important;
    }

    .bar {
        width: 24px; /* Slightly larger on mobile */
        height: 3px;
    }

    /* Adjust nav-menu for mobile */
    .nav-menu {
        top: 55px;
        right: 10px; /* Align with hamburger on right */
        width: calc(100vw - 40px); /* Make menu wider on mobile */
        max-width: 120px;
    }
}
/* End of css/nav.css */