/* ============================================================
   AffilioPedia — "who did you work with?" finder
   Upload to /assets/css/ap-review-finder.css

   Collapses the path to leaving a review from five steps
   (Networks page, search, open profile, scroll, click) to two:
   type a name, pick it. The result links straight to the
   profile's reviews section.
   ============================================================ */

.apf{
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 26px auto 0;
  text-align: left;
  z-index: 5;
}

.apf__row{
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.apf__field{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.apf__icon{
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--gray);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.apf__input{
  width: 100%;
  height: 52px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,255,.20);
  background: rgba(12,19,39,.86);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.apf__input::placeholder{ color: var(--gray); }
.apf__input:hover{ border-color: rgba(148,163,255,.34); }
.apf__input:focus{
  border-color: var(--violet-bright);
  background: rgba(16,24,50,.95);
}

/* ---- results ---- */
.apf__list{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(148,163,255,.18);
  background: #0b1224;
  box-shadow: 0 26px 60px -20px rgba(0,0,0,.9);
  max-height: 340px;
  overflow-y: auto;
  display: none;
}
.apf[data-open="true"] .apf__list{ display: block; }

.apf__item a,
.apf__empty{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #fff;
}
.apf__item a:hover,
.apf__item[aria-selected="true"] a{ background: rgba(124,58,237,.20); }
.apf__item a:focus-visible{ outline: 2px solid #cfa6ff; outline-offset: -2px; }

.apf__avatar{
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f1830;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.apf__name{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apf__meta{
  flex: none;
  font-size: 12.5px;
  color: var(--gray);
  white-space: nowrap;
}
.apf__meta b{ color: var(--gold); font-weight: 600; }

.apf__empty{ color: var(--gray); font-size: 14px; cursor: default; }

.apf__hint{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
}
.apf__hint a{ color: #9fc0ff; text-decoration: underline; text-underline-offset: 2px; }
.apf__hint a:hover{ color: #fff; }

@media (max-width: 720px){
  .apf__row{ flex-direction: column; }
  .apf .aphv-cta{ width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce){
  .apf__input{ transition: none; }
}
