/**
 * Mobile header layout + drawer search bar
 * Loaded after bundle.min.css
 */

/* Slim notice bar above header */
.header__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.header__notice-icon {
  display: inline-flex;
  align-items: center;
}

.header__notice-icon svg {
  width: 14px;
  height: 14px;
}

.header__notice-text {
  font-weight: var(--font-weight-medium);
}

/* ============================================
 * Header layout (mobile/tablet)
 * Left: language, Center: logo, Right: hamburger
 * ============================================ */

@media (max-width: 1023px) {
  .header__container {
    display: grid;
    /* Keep lang left + hamburger right, but nudge logo slightly toward hamburger */
    grid-template-columns: 1fr auto 0.8fr;
    align-items: center;
    gap: 10px;
  }

  .header__nav {
    display: none;
  }

  .header__logo {
    grid-column: 2;
    justify-self: center;
  }

  .header__actions {
    grid-column: 3;
    justify-self: end;
    gap: 10px;
  }

  /* Move search into drawer on mobile */
  .header__search-btn {
    display: none;
  }

  .header__mobile-lang {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    max-width: 120px;
  }
}

@media (min-width: 1024px) {
  .header__mobile-lang {
    display: none;
  }
  
  .header__desktop-lang {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 1023px) {
  .header__desktop-lang {
    display: none;
  }
}

/* Compact header language dropdown */
.lang-dropdown--header .lang-dropdown__trigger {
  height: 38px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  color: var(--color-dark-gray);
}

.lang-dropdown--header .lang-dropdown__value {
  font-size: 0.88rem;
  gap: 6px;
}

.lang-dropdown--header .lang-dropdown__menu {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: 180px;
}

/* ============================================
 * Drawer search bar
 * ============================================ */

.header__drawer-search {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.drawer-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.drawer-search__input {
  flex: 1 1 auto;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.80);
  color: var(--color-dark-gray);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.drawer-search__input:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.10);
}

.drawer-search__btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.drawer-search__btn:hover {
  background: var(--color-primary-hover);
}

.drawer-search__btn:active {
  transform: scale(0.98);
}
