/* ==================================================================
   HEADER CSS - Design System V2
   Compatível com global_v2.css
   ================================================================== */

#wf-header {
  background: var(--wf-color-surface);
  border-bottom: 1px solid var(--wf-color-border);
  position: sticky;
  top: 0;
  z-index: var(--wf-z-header);
  box-shadow: var(--wf-shadow-sm);
}

.wf-header-inner {
  max-width: var(--wf-max-width-content);
  margin: 0 auto;
  padding: var(--wf-spacing-md) var(--wf-spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wf-spacing-lg);
  flex-wrap: wrap;
}

.wf-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1730;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--wf-transition-base);
}

.wf-logo:hover {
  color: var(--wf-color-accent);
}

.wf-header-nav {
  display: flex;
  align-items: center;
  gap: var(--wf-spacing-md);
}

.wf-header-nav__items {
  display: flex;
  align-items: center;
  gap: var(--wf-spacing-sm);
  flex-wrap: wrap;
}

.wf-header-nav__items a {
  text-decoration: none;
  color: var(--wf-color-text);
  font-weight: 600;
  padding: var(--wf-spacing-xs) var(--wf-spacing-sm);
  border-radius: var(--wf-radius-sm);
  transition: all var(--wf-transition-base);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.wf-header-nav__items a:hover {
  background: var(--wf-color-surface-alt);
  color: var(--wf-color-accent);
}

.wf-header-nav__item {
  color: var(--wf-color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--wf-spacing-sm) var(--wf-spacing-md);
  border-radius: var(--wf-radius-sm);
  transition: all var(--wf-transition-base);
}

.wf-header-nav__item:hover {
  background: var(--wf-color-surface-alt);
  color: var(--wf-color-accent);
}

.wf-header-right {
  display: flex;
  align-items: center;
  gap: var(--wf-spacing-sm);
}

.wf-header-search-btn,
.wf-header-country-btn,
.wf-header-menu-btn {
  background: transparent;
  border: 1px solid var(--wf-color-border);
  border-radius: var(--wf-radius-sm);
  padding: var(--wf-spacing-sm);
  cursor: pointer;
  transition: all var(--wf-transition-base);
  color: var(--wf-color-text);
  min-height: 36px;
  min-width: 36px;
}

.wf-header-search-btn:hover,
.wf-header-country-btn:hover,
.wf-header-menu-btn:hover {
  background: var(--wf-color-surface-alt);
  border-color: var(--wf-color-accent);
}

.wf-header-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--wf-color-surface);
  box-shadow: var(--wf-shadow-lg);
  z-index: var(--wf-z-modal);
  transition: right var(--wf-transition-slow);
  overflow-y: auto;
}

.wf-header-drawer[aria-hidden="false"] {
  right: 0;
}

.wf-drawer-head {
  padding: var(--wf-spacing-lg);
  border-bottom: 1px solid var(--wf-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wf-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--wf-color-text);
  padding: var(--wf-spacing-xs);
}

@media (max-width: calc(var(--wf-breakpoint-md) - 1px)) {
  .wf-header-nav--desktop {
    display: none;
  }
  .wf-header-inner {
    gap: var(--wf-spacing-md);
  }
}
