/* ================================================================
   search.css — CPH Food Guide
================================================================ */

/* ─── SEARCH HERO ────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(150deg, var(--ink) 0%, #2A1E14 100%);
  padding: var(--sp-12) 0 var(--sp-10);
}
.search-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--sp-6);
  animation: fadeUp 0.5s var(--ease) both;
}

/* ─── SEARCH FORM ────────────────────────────────────────────── */
.search-form { display: flex; flex-direction: column; gap: var(--sp-3); }

.search-input-wrap {
  position: relative;
  animation: fadeUp 0.5s var(--ease) 0.1s both;
}
.search-icon {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: rgba(245,240,232,0.4);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.875rem var(--sp-12) 0.875rem var(--sp-12);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  color: var(--cream);
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  outline: none;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  caret-color: var(--terracotta);
}
.search-input::placeholder { color: rgba(245,240,232,0.35); }
.search-input:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(245,240,232,0.4);
  box-shadow: 0 0 0 3px rgba(200,85,61,0.2);
}

.search-clear {
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(245,240,232,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.search-clear svg { width: 14px; height: 14px; }
.search-clear:hover { background: rgba(255,255,255,0.22); color: var(--cream); }

/* Type filter pills */
.search-filters {
  display: flex;
  gap: var(--sp-2);
  animation: fadeUp 0.5s var(--ease) 0.15s both;
}
.search-filter-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  color: rgba(245,240,232,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.search-filter-btn:hover { background: rgba(255,255,255,0.12); color: var(--cream); }
.search-filter-btn--active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ─── SEARCH BODY ────────────────────────────────────────────── */
.search-body { padding-top: var(--sp-6); padding-bottom: var(--sp-20); }

.search-status {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-bottom: var(--sp-6);
  min-height: 1.25em;
}

/* ─── IDLE / EMPTY STATES ────────────────────────────────────── */
.search-idle,
.search-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
}
.search-idle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.search-idle-icon {
  font-size: 3rem;
  display: block;
}
.search-idle p,
.search-empty p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-muted);
}
.search-empty-sub {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-size: 0.875rem !important;
  color: var(--ink-faint) !important;
}
.search-empty-sub a { color: var(--terracotta); text-decoration: underline; }

/* Suggestion pills */
.search-suggestions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.search-sugg-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.search-sugg-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.search-sugg-pill {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.search-sugg-pill:hover {
  background: var(--terracotta-tint);
  color: var(--terracotta);
  border-color: var(--terracotta);
}
