/* ============================================================================
   HEADER, SEARCH BAR & ISLAND MENU (header.css)
   ============================================================================ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
  z-index: 100;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 540px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.search-input:focus {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  right: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Typeahead Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(18, 18, 22, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
}

.search-suggestions-dropdown.hidden {
  display: none !important;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.18s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.suggestion-cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.suggestion-info strong {
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Island Header Menu (desktop horizontal strip — do NOT target Dynamic Island buttons) */
.island-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.island-menu > .island-menu-btn {
  background: transparent;
  border: none;
  color: var(--accent-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.island-menu > .island-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
