/* Header styles for World Trip Advisor 2026 */

.wta-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(245, 247, 250, 0.94), rgba(255, 255, 255, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.wta-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.wta-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wta-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--color-text);
}

.wta-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, #ffffff, #dbeafe);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wta-header__logo-compass {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0f7fb);
}

.wta-header__logo-compass-needle {
  position: relative;
  width: 12px;
  height: 12px;
  transform: rotate(-18deg);
}

.wta-header__logo-compass-needle::before,
.wta-header__logo-compass-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.wta-header__logo-compass-needle::before {
  bottom: 50%;
  transform: translateX(-50%);
  border-bottom: 8px solid var(--color-primary-strong);
}

.wta-header__logo-compass-needle::after {
  top: 50%;
  transform: translateX(-50%);
  border-top: 8px solid var(--color-amber);
}

.wta-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wta-header__logo-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
}

.wta-header__logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Navigation */

.wta-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.wta-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wta-header__nav-item {
  position: relative;
}

.wta-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.2rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: var(--radius-full);
}

.wta-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  margin-inline: auto;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-amber));
  transition: width var(--transition-normal);
}

.wta-header__nav-link:hover,
.wta-header__nav-link:focus-visible {
  color: var(--color-primary-strong);
}

.wta-header__nav-link:hover::after,
.wta-header__nav-link:focus-visible::after {
  width: 100%;
}

.wta-header__nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: var(--space-12);
}

.wta-header__tips-cta {
  border-radius: 999px;
}

.wta-header__contact-cta {
  border-radius: 999px;
}

/* Mobile nav toggle */

.wta-header__nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wta-header__nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-gray-800);
  transition: transform var(--transition-normal), opacity var(--transition-normal), top var(--transition-normal), bottom var(--transition-normal);
}

.wta-header__nav-toggle-bar + .wta-header__nav-toggle-bar {
  margin-top: 4px;
}

/* Open state */

.wta-header__nav-toggle.is-open .wta-header__nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wta-header__nav-toggle.is-open .wta-header__nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.wta-header__nav-toggle.is-open .wta-header__nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive behavior */

@media (max-width: 960px) {
  .wta-header__nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .wta-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin-top: 6px;
    padding: var(--space-10) var(--layout-gutter) var(--space-16);
    background: radial-gradient(circle at 0 0, rgba(9, 169, 184, 0.04), transparent 65%),
      radial-gradient(circle at 100% 100%, rgba(245, 166, 35, 0.04), transparent 65%),
      rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    gap: var(--space-12);
  }

  .wta-header__nav.is-open {
    display: flex;
  }

  .wta-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .wta-header__nav-link {
    padding-inline: 0;
    font-size: var(--font-size-md);
  }

  .wta-header__nav-link::after {
    display: none;
  }

  .wta-header__nav-cta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: var(--space-6);
  }

  .wta-header__tips-cta,
  .wta-header__contact-cta {
    width: auto;
  }
}

@media (max-width: 640px) {
  .wta-header__logo-title {
    font-size: 0.98rem;
  }

  .wta-header__logo-subtitle {
    display: none;
  }
}
