﻿/* =========================
   SEARCH
========================= */

.ps-search {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 640px;
  margin-top: -6px;
  --ps-results-base-top: 82px;
  --ps-results-context-offset: 0px;
}

.ps-search::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 158px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(99, 102, 241, 0.08) 34%, transparent 72%);
  transform: translate(-50%, -50%);
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
}

.ps-search-top {
  width: 100%;
  max-width: 640px;
  margin: 0 0 28px;
}

.ps-input-wrap {
  position: relative;
  isolation: isolate;
  border-radius: var(--ps-radius-pill);
  padding: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.92) 0%, rgba(99, 102, 241, 0.88) 46%, rgba(255, 255, 255, 0.2) 100%);
  background-size: 180% 180%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 26px rgba(99, 102, 241, 0.18),
    0 18px 34px rgba(6, 10, 24, 0.34),
    var(--ps-shadow);
  animation: none;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-input-wrap::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.08) 34%, rgba(255, 255, 255, 0.04) 52%, rgba(99, 102, 241, 0.08) 72%, rgba(56, 189, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(0, 0, 0, 0.1) 100%);
  background-size: 180% 180%, 100% 100%;
  pointer-events: none;
  z-index: 0;
  animation: none;
}

.ps-input-wrap::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -12px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26) 0%, rgba(99, 102, 241, 0.18) 34%, rgba(99, 102, 241, 0.08) 56%, transparent 78%);
  filter: blur(15px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.92;
  animation: none;
  transition: opacity 0.25s ease;
}

.ps-input-wrap:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 30px rgba(99, 102, 241, 0.22),
    0 22px 38px rgba(6, 10, 24, 0.38),
    var(--ps-shadow);
}

.ps-input-wrap:focus-within {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 0 34px rgba(99, 102, 241, 0.28),
    0 22px 40px rgba(6, 10, 24, 0.4),
    var(--ps-shadow);
}

.ps-input-wrap:focus-within::after {
  opacity: 1;
}

@keyframes ps-search-frame-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 22px rgba(99, 102, 241, 0.17),
      0 0 10px rgba(56, 189, 248, 0.08),
      0 18px 34px rgba(6, 10, 24, 0.34),
      var(--ps-shadow);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.065),
      0 0 34px rgba(99, 102, 241, 0.28),
      0 0 18px rgba(56, 189, 248, 0.15),
      0 18px 34px rgba(6, 10, 24, 0.36),
      var(--ps-shadow);
  }
}

@keyframes ps-search-frame-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes ps-search-frame-glow {
  0%,
  100% {
    opacity: 0.86;
    transform: translateX(0) scaleX(0.985);
  }

  50% {
    opacity: 1;
    transform: translateX(1.5%) scaleX(1.02);
  }
}

@keyframes ps-search-frame-sheen {
  0%,
  100% {
    opacity: 0.96;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ps-search-frame-scan {
  0% {
    background-position: 0% 50%, 0 0;
  }

  50% {
    background-position: 100% 50%, 0 0;
  }

  100% {
    background-position: 0% 50%, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-app::before {
    animation: none;
  }

  .ps-input-wrap,
  .ps-input-wrap::before,
  .ps-input-wrap::after {
    animation: none;
  }
}

.ps-input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--ps-input-height-lg);
  border: none;
  border-radius: var(--ps-radius-pill);
  background: linear-gradient(180deg, #fafafc 0%, #f1f2f6 100%);
  padding: 0 30px 0 56px !important;
  font-size: clamp(var(--ps-type-input), 1.5vw, 19px);
  color: #111827;
  outline: none;
  caret-color: var(--ps-accent);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.ps-input::placeholder {
  color: transparent;
  opacity: 0;
}

.ps-input-ghost {
  position: absolute;
  inset: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0 30px 0 56px;
  color: #66758d;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.ps-input-ghost-prefix {
  opacity: 0.96;
}

.ps-input-ghost-text {
  color: inherit;
  font-weight: 500;
}

.ps-input:focus + .ps-input-ghost {
  opacity: 0.76;
  transform: translateX(12px);
}

.ps-input:not(:placeholder-shown) + .ps-input-ghost {
  opacity: 0;
  transform: translateX(10px);
}

.ps-input-hint-store {
  display: none !important;
}

.ps-icon {
  display: none;
}
