/* Reset and Base Styles for Hamburger Menu */
.hamburger-menu {
    all: unset; /* Reset all inherited styles */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 4rem;
    max-height: 4rem;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.hamburger-menu svg {
    border-radius: 0; /* Ensure the SVG itself isn’t affected */
}

/* Initial State for Rectangles */
.hamburger-menu svg rect {
    border-radius: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center; /* Rotate around the center of each bar */
    background-color: rgba(255, 255, 255, 0.8); /* Slight color */
}

/* Transform the first rectangle (top bar) */
.hamburger-menu.open svg rect:nth-child(1) {
    transform: translateY(20%) rotate(45deg); /* Adjust for symmetry */
}

/* Hide the middle rectangle (middle bar) */
.hamburger-menu.open svg rect:nth-child(2) {
    opacity: 0;
}

/* Transform the last rectangle (bottom bar) */
.hamburger-menu.open svg rect:nth-child(3) {
    transform: translateY(-20%) rotate(-45deg); /* Adjust for symmetry */
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    max-height: 2.5rem;
    max-width: 2.5rem;
}

.login-icon {
    max-width: 80%;
    max-height: 80%;
}

/* Mobile Navbar */
.mobile-navbar {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-height: 4rem;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 1);
}

.mobile-navbar > .mobile-menu > .category > .category-header, .category-content {
    box-shadow: none;
    background-color: transparent;
}

.mobile-nav-item {
    display: flex;
    flex-shrink: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: none;
}

/* Mobile Menu Content */
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 5rem;
    left: 1.1rem;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(255, 0, 0, 1);
}

.mobile-menu a {
    text-decoration: none;
    color: #fff; /* Match your site's theme */
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}