/* Mobile Menu Button Styles */
#mobile-side-drawer {
  position: relative;
  padding: 9px 10px;
  margin: 8px 15px;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  z-index: 1000;
}

#mobile-side-drawer .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #fff;
  margin-top: 4px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-side-drawer:hover .icon-bar {
  background-color: #ffd204;
}

/* Active state for hamburger to X animation */
#mobile-side-drawer.active .icon-bar:nth-child(2) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-side-drawer.active .icon-bar:nth-child(3) {
  opacity: 0;
}

#mobile-side-drawer.active .icon-bar:nth-child(4) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu styles for Bootstrap 5 */
@media (max-width: 991px) {
  /* Basic styling for the menu */
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #212427;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  }
  
  /* Menu items styling */
  .header-nav .nav li {
    display: block;
    width: 100%;
  }
  
  .header-nav .nav li a {
    padding: 12px 15px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
  }
  
  .header-nav .nav li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd204;
  }
  
  /* Bootstrap 5 collapse overrides */
  .header-nav.collapse:not(.show) {
    display: none;
  }
  
  .header-nav.collapse.show {
    display: block;
  }
  
  /* Language switcher */
  .header-nav .nav.navbar-nav li.language-switch {
    display: inline-block;
    width: auto;
    padding: 10px;
  }
}
