/* assets/css/navigation.css - Updated with fully clickable menu button */

.header-left {
  order: 1;
}

.header-center {
  order: 2;
}

.header-right {
  order: 3;
}

/* RTL (Arabic) layout adjustments */
.rtl .header-left {
  order: 3;
}

.rtl .header-center {
  order: 2;
}

.rtl .header-right {
  order: 1;
}

/* Base Navigation Styles */
.nav-wrapper {
  position: relative;
  width: 100%;
  top: 33px;
  left: 31px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1005;
  background-color: transparent;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 80px;
  mix-blend-mode: difference;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  max-width: 1775px;
  margin: 0 auto;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
}

/* Logo Styles */
.logo-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: block;
  mix-blend-mode: difference;
}

.logo {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.static-logo {
  opacity: 1;
}

.hover-logo {
  opacity: 0;
}

.logo-container:hover .static-logo {
  opacity: 0;
}

.logo-container:hover .hover-logo {
  opacity: 1;
}

/* Updated Mobile Menu Toggle Button - Now fully clickable */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: fixed;
  top: 30px;
  left: 20px;
  right: auto;
  z-index: 1010;
  mix-blend-mode: difference;
  /* Ensure the entire button is clickable */
  min-height: 44px; /* Minimum touch target size */
  min-width: 44px;
}

.mobile-menu-toggle:focus-visible {
  outline: 0px;
}

.menu-toggle-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  pointer-events: none; /* Let clicks pass through to button */
}

.burger-container {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle-div {
  width: 30px;
  height: 20px;
  display: flex;
  align-items: center;
}

.div-mobile-menu-toggle-span {
  width: 100%;
}

.mobile-menu-toggle-span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle-span:last-child {
  margin-bottom: 0;
}

.menu-label-container {
  display: flex;
  align-items: center;
}

.menu-label-text {
  font-size: 15px;
  text-transform: uppercase;
  color: white;
  filter: invert(1);
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* X animation when menu is open */
.mobile-menu-toggle.open .mobile-menu-toggle-span:nth-child(1) {
  transform: translateY(0px) rotate(45deg);
}

.mobile-menu-toggle.open .mobile-menu-toggle-span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

/* RTL adjustments for mobile menu toggle */
.rtl .mobile-menu-toggle {
  left: auto;
  right: 20px;
}

.rtl .menu-toggle-content {
  flex-direction: row-reverse;
}

/* Menu Drawer Styles */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 30%;
  height: 100vh;
  background-color: #000;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  color: #fff;
}

.rtl .menu-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.menu-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  z-index: 999;
}

.drawer-content {
  padding: 120px 0 0;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  position: relative;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 700;
  text-decoration: none;
  padding: 5px 10px 5px 28px;
  position: relative;
  transition: background-color 0.3s ease;
}

.rtl .menu-link {
  padding: 5px 28px 5px 10px;
}

.rtl .menu-list {
  direction: rtl;
}

.menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-link:hover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-top: 1px dashed white;
  border-bottom: 1px dashed white;
  animation: dashBorder 0.6s forwards;
  overflow: hidden;
}

.rtl .menu-link:hover:before {
  left: auto;
  right: 0;
}

@keyframes dashBorder {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.submenu {
  display: none;
  list-style: none;
  padding: 0 0 0 40px;
  margin: 10px 0 0;
}

.rtl .submenu {
  padding: 0 40px 0 0;
}

.submenu-item {
  margin-bottom: 8px;
}

.submenu-link {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.submenu-link:hover {
  color: #DF1780;
}

.submenu-indicator {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.menu-item.submenu-open .submenu-indicator {
  transform: rotate(45deg);
}

.menu-item.submenu-open .submenu {
  display: block;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  mix-blend-mode: difference;
}

.rtl .header-controls {
  flex-direction: row-reverse;
}

.search-toggle,
.language-switch {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: invert(1);
}

.language-switch {
  text-decoration: none;
  font-weight: 600;
  order: 2;
}

/* Search Form */
.search-form-container {
  position: absolute;
  top: 0;
  right: 60px;
  width: 0;
  height: 100%;
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
}

.rtl .search-form-container {
  right: auto;
  left: 60px;
}

.search-form-container.open {
  width: 200px;
}

#search-form {
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid;
  padding: 5px 25px 5px 5px;
  outline: none;
  font-size: 15px;
}

.rtl-input {
  direction: rtl;
  padding: 5px 5px 5px 25px;
}

.search-close {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.rtl .search-close {
  right: auto;
  left: 5px;
}

/* Header States */
.main-header.hidden {
  transform: translateY(-100%);
}

.main-header.scrolled {
  background-color: white;
  color: black;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  mix-blend-mode: normal;
}

/* Language Transition */
.language-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #DF1780;
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
}

.language-transition.active {
  animation: slide-in-out 1s forwards;
  visibility: visible;
}

@keyframes slide-in-out {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    top: 25px;
    left: 15px;
  }
  
  .rtl .mobile-menu-toggle {
    right: 15px;
    left: auto;
  }
  
  .menu-label-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .menu-toggle-content {
    gap: 8px;
  }
  
.menu-drawer {width:100%;}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
  font-size: 2.4rem;
}

  .mobile-menu-toggle-div {
    width: 25px;
  }
  
  .menu-label-text {
    font-size: 13px;
  }
}