/* AirKit Design System - Navigation Components */
/* Adapted for PayLoadz WordPress Theme */

/* Navigation Base */
.site-header {
  background: var(--color-shade-01);
  border-bottom: 1px solid var(--color-neutral-03);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  height: 32px;
}

.site-logo img {
  height: 100%;
  width: auto;
  max-width: 150px;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Search Bar */
.header-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: var(--color-shade-01);
  border: 1px solid var(--color-neutral-03);
  border-radius: 2rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
  min-width: 300px;
}

.header-search:hover {
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.12);
}

.header-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--color-shade-02);
  font-family: var(--font-family-primary);
  flex: 1;
  padding: 0;
}

.header-search-input::placeholder {
  color: var(--color-neutral-07);
}

.header-search-button {
  width: 32px;
  height: 32px;
  background: var(--color-primary-02);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.header-search-button:hover {
  background: var(--color-primary-01);
}

.header-search-button svg {
  width: 14px;
  height: 14px;
  fill: var(--color-shade-01);
}

/* Navigation Menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

.header-cta-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.header-cta-link:hover {
  background-color: var(--color-neutral-02);
}

.header-cta-icon {
  flex-shrink: 0;
  transform: translateY(-2px);
}

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

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--color-shade-02);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 1.5rem;
  transition: background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  background: var(--color-neutral-01);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--color-shade-01);
  border: 1px solid var(--color-neutral-03);
  border-radius: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--color-neutral-01);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-shade-02);
  transition: all 0.3s ease;
}

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

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

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

/* Responsive Navigation */
@media (max-width: 1024px) {
  .header-search {
    position: relative;
    left: auto;
    transform: none;
    min-width: 200px;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: 64px;
  }
  
  .header-search {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-shade-01);
    border-top: 1px solid var(--color-neutral-03);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
  }
}

