/**
 * Header Styles
 * Site header, navigation, search, mobile menu
 */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-yellow);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-nav {
  height: 80px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
}

.logo-icon svg,
.logo-icon img {
  width: 100%;
  height: 100%;
}

/* Navigation Inner Layout */
.nav-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Search */
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #eee;
  border-radius: 24px;
  padding: 4px 6px 4px 16px;
  max-width: 520px;
}

.search-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  outline: none;
}

.search-button {
  background: var(--color-accent);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  flex: 0 0 40px;
  min-width: 40px;
}

.search-button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.5);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.nav-links a.auth-btn {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.nav-links a.auth-btn:hover,
.nav-links a.auth-btn:focus-visible {
  background: #0d47d9;
  transform: translateY(-1px);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #111;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  right: -100%;
  top: 0;
  width: 80vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 32px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2000;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  display: grid;
  gap: 16px;
  font-size: 18px;
}

.mobile-menu a.auth-btn {
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 24px;
  text-align: center;
  font-weight: 700;
}

.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Breakpoints */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .top-nav {
    height: 72px;
    padding: 24px 0 12px;
  }

  .search-wrap {
    display: none;
  }
}
