/* ── Xamu Nav Search & Sophia ── v20260502h */

/* Search-Strip: zweite Zeile im Header, unter dem Logo */
#search-strip {
  padding: 0 0 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

#xamu-search-wrapper {
  position: relative;
  display: inline-block;
}

.xamu-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 14px;
  width: 280px;
  cursor: text;
  transition: border-color 0.2s, background 0.2s, width 0.3s ease;
}

.xamu-search-bar:focus-within {
  border-color: rgba(200,168,85,0.5);
  background: rgba(200,168,85,0.05);
  width: 360px;
}

.xamu-search-icon {
  width: 13px;
  height: 13px;
  color: #666;
  flex-shrink: 0;
}

#xamu-search-input {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  color: #ccc !important;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

#xamu-search-input::placeholder { color: #555; }

.xamu-sophia-hint {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.xamu-search-bar:focus-within .xamu-sophia-hint {
  color: #c8a855;
}

/* Dropdown */
.xamu-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  background: #0e0e18;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 6px;
}

.xsdd-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  padding: 4px 8px;
}

.xsdd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.xsdd-item:hover { background: rgba(255,255,255,0.05); }

.xsdd-icon { width: 13px; height: 13px; color: #555; flex-shrink: 0; }
.xsdd-ql-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.xsdd-title { color: #bbb; font-size: 13px; }
.xsdd-desc  { color: #555; font-size: 11px; margin-top: 1px; }

.xsdd-sophia {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  border-radius: 0 0 7px 7px;
  transition: background 0.12s;
  color: #c8a855;
  font-size: 13px;
}
.xsdd-sophia:hover { background: rgba(200,168,85,0.07); }
.xsdd-sophia em { font-style: italic; color: #e8c87a; }

.xsdd-sophia-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #c8a855;
  color: #0a0a0f;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.xsdd-enter { margin-left: auto; color: #444; font-size: 11px; }

/* Light theme */
[data-theme="light"] #search-strip { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .xamu-search-bar {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] #xamu-search-input { color: #1a1a2e; }
[data-theme="light"] #xamu-search-input::placeholder { color: #bbb; }
[data-theme="light"] .xamu-search-dropdown { background: #fff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .xsdd-title { color: #1a1a2e; }
[data-theme="light"] .xsdd-desc  { color: #888; }

@media (max-width: 900px) {
  #search-strip { display: none; }
}
