/* ===== Site header — glass bar, segmented nav, compact on scroll ===== */

.site-header {
  z-index: 80;
  padding: 12px 28px;
  gap: 16px;
  background: rgba(14, 18, 26, 0.72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 166, 77, 0.45) 30%, rgba(255, 77, 77, 0.35) 70%, transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.site-header.is-scrolled {
  padding-top: 7px;
  padding-bottom: 7px;
  background: rgba(10, 13, 20, 0.82) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.site-header.is-scrolled::after { opacity: 1; }

.site-header .logo.logo--img img {
  height: 44px;
  transition: height 0.22s ease;
}
.site-header.is-scrolled .logo.logo--img img { height: 34px; }

/* Segmented nav */
.site-header .nav-tabs {
  gap: 2px;
  margin: 0 8px 0 22px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}
.site-header .nav-tab {
  position: relative;
  border: 0;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #8f99ab;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-header .nav-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecf2;
}
.site-header .nav-tab.active {
  color: #ffb066;
  background: linear-gradient(180deg, rgba(255, 166, 77, 0.2), rgba(255, 166, 77, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 166, 77, 0.35), 0 4px 14px rgba(255, 140, 50, 0.15);
}
.site-header .nav-tab.active::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffa64d, #ff4d4d);
}

/* Search */
.site-header .search-container { max-width: 380px; }
.site-header .search-input {
  height: 38px;
  padding: 0 40px 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a8498' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50% !important;
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.site-header .search-input:hover { border-color: rgba(255, 255, 255, 0.16); }
.site-header .search-input:focus {
  border-color: rgba(255, 166, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 166, 77, 0.12);
}
.site-header .search-container::after {
  content: "/";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #7a8498;
  font: 700 11px/1 inherit;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.site-header .search-container:focus-within::after { opacity: 0; }
.site-header .search-dropdown {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.site-header .tagline {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: #6b7486;
}

@media (max-width: 1240px) {
  .site-header .header-meta .tagline { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding: 10px 14px 12px; gap: 10px; }
  .site-header.is-scrolled { padding-top: 6px; padding-bottom: 8px; }
  .site-header .logo.logo--img img { height: 38px; }
  .site-header.is-scrolled .logo.logo--img img { height: 30px; }
  .site-header .nav-tabs { margin: 0; overflow-x: auto; }
  .site-header .nav-tab { padding: 8px 12px; font-size: 10.5px; }
  .site-header .nav-tab.active::after { display: none; }
  .site-header .search-input { height: 40px; font-size: 16px; }
  .site-header .search-container::after { display: none; }
}
