/* ═══════════════════════════════════════════
   GIEESKRECIPES — Search
═══════════════════════════════════════════ */
.search-strip {
  position: relative;
  z-index: 10;
  padding: var(--space-xl) 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dim);
}

.search-bar-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 8px 8px 8px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-voice {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: 17px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.search-voice:hover  { color: var(--gold); background: var(--gold-glow); }
.search-voice.active { color: var(--coral); animation: pulse 1s infinite; }

.search-submit {
  padding: 8px 22px;
  background: var(--gold);
  color: #0A0A09;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-submit:hover { background: var(--gold-light); }

/* Filter chips */
.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 0 4px;
}

.filter-chip {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.filter-chip.active {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* Dropdown results */
.search-results-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: none;
  z-index: 20;
  max-height: 400px;
  overflow-y: auto;
}
.search-results-drop.visible { display: block; animation: fadeUp 0.2s var(--ease-smooth); }

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  transition: background 0.15s;
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: var(--bg-elevated); }

.search-drop-thumb {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.search-drop-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-drop-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.search-drop-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.search-drop-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}


/* ── Search mobile fixes ────────────────── */
@media (max-width: 640px) {
  .search-bar-wrap {
    width: 100%;
    max-width: 100%;
  }
  .search-bar {
    padding: 10px 14px;
    font-size: 14px;
  }
  .filter-strip {
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-chip {
    font-size: 12px;
    padding: 5px 12px;
  }
}
