/* Site header - dark theme for character pages (standalone) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 80, 180, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.site-header__logo:hover {
  color: #ff50b4;
}

.site-header__search {
  flex: 1;
  max-width: 320px;
  min-width: 160px;
}

.site-header__search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.site-header__search-input:focus {
  outline: none;
  border-color: rgba(255, 80, 180, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 80, 180, 0.15);
}

.site-header__search-wrap {
  position: relative;
}

.site-header__search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  z-index: 1;
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #1a1530;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 80, 180, 0.2);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-dropdown__item:last-child {
  border-bottom: none;
}

.search-dropdown__item:hover,
.search-dropdown__item[aria-selected="true"] {
  background: rgba(255, 80, 180, 0.15);
}

.search-dropdown__item img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-dropdown__item-content {
  flex: 1;
  min-width: 0;
}

.search-dropdown__item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.search-dropdown__item-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__empty {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  text-align: center;
}

.site-header__promo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-header__promo-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.site-header__promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, #ff50b4, #a855f7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(255, 80, 180, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.site-header__promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 80, 180, 0.45);
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
  }
  .site-header__search { max-width: none; }
  .site-header__promo { justify-content: center; }
}
