/* ============================================================
   EAGLE EYE — SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.top-bar {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
  color: #fff;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 600;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar__links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
}

.top-bar__link svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.top-bar__auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.top-bar__auth:hover {
  background: rgba(255, 255, 255, 0.2);
}

.main-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.main-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 28px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.header-search {
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}

.header-search form {
  position: relative;
}

.header-search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding-block: 0;
  padding-inline: 18px 50px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.header-search button:hover {
  background: var(--color-primary-dark, #1d4ed8);
  transform: translateY(-50%) scale(1.03);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: all 0.2s;
}

.action-btn:hover {
  color: var(--color-primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.action-btn__icon {
  position: relative;
  color: var(--color-primary);
  display: flex;
}

.action-btn__badge {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  min-width: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.hamburger-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: var(--color-primary-dark);
  padding: 8px;
  cursor: pointer;
}

.nav-bar {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link svg {
  opacity: 0.85;
}

.nav-link:hover {
  color: var(--color-primary);
  background: #f8fafc;
}

.nav-link.active,
.nav-link--home {
  color: var(--color-primary);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.nav-link.active svg,
.nav-link--home svg {
  opacity: 1;
}

@media (max-width: 1100px) {
  .action-btn span:not(.action-btn__badge) {
    display: none;
  }

  .action-btn {
    padding: 10px;
  }

  .top-bar__links {
    gap: 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .main-header {
    padding: 10px 0;
  }

  .main-header .container {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .header-search {
    display: none;
  }

  .header-logo img {
    height: 42px;
  }

  .nav-bar {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .action-btn--account {
    display: none;
  }
}
