/**
 * Header Styles
 * Responsive header for desktop and mobile
 */

.header {
  background-color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #ffffff;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(59, 130, 246, 0.15);
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #374151;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  min-width: 180px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0.5rem 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.btn-nav {
  background-color: var(--logo-blue);
  color: #ffffff !important;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn-nav:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.currency-switcher {
  position: relative;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.currency-label {
  cursor: pointer;
  color: #666;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.currency-label:hover {
  background-color: rgba(59, 130, 246, 0.15);
  color: #ffffff;
}

.currency-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: #374151;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  min-width: 80px;
  display: none;
  z-index: 1000;
}

.currency-dropdown.active {
  display: block;
}

.currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.currency-option:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.currency-option:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.currency-option:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.currency-option.active {
  background-color: var(--logo-blue);
  color: #ffffff;
  font-weight: 600;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
  color: #ffffff;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #1f2937;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    align-items: stretch;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 0.875rem 2rem;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #374151;
    margin: 0;
    padding: 0;
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-link {
    padding: 0.875rem 3rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .currency-switcher {
    margin-left: 0;
    padding-left: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
  }

  .currency-dropdown {
    right: auto;
    left: 2rem;
  }

  .language-switcher {
    margin-left: 0;
    padding-left: 2rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

