/**
 * Mobile Navigation Styles
 * Handles responsive navigation and language selector
 */

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 150;
}

.menu-toggle:focus {
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    z-index: 100;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .main-nav ul li {
    margin: 0;
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav ul li a.active:after {
    display: none;
  }

  .main-nav ul li a.active {
    color: var(--primary-color);
    font-weight: 700;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Language switcher in mobile */
  .language-switcher-mobile {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
  }

  .language-switcher-mobile button {
    margin-right: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
  }

  /* Hide top bar on mobile */
  .top-bar {
    display: none;
  }

  /* Adjust header for mobile */
  .main-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  /* Hide desktop CTA */
  .cta-button {
    display: none;
  }
}

/* Smaller screens */
@media (max-width: 576px) {
  .main-nav {
    width: 100%;
    max-width: none;
  }
}
