/* Search page */
.search-hero {
  width: 100%;
  min-height: 56vh;
  padding: clamp(112px, 16vh, 156px) 17vw clamp(64px, 8vh, 84px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    118deg,
    #0f2d5c 0%,
    #1a3d7a 32%,
    #4f2f88 64%,
    #1a446f 100%
  );
  background-size: 160% 160%;
  animation: search-hero-gradient 14s ease-in-out infinite;
  color: #fff;
  text-align: center;
}

.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 22% 28%,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 42%
  );
  opacity: 0.55;
  animation: search-hero-glow 9s ease-in-out infinite;
}

.search-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.26) 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(120, 235, 255, 0.28) 1.6px, transparent 1.8px),
    radial-gradient(circle, rgba(207, 161, 255, 0.24) 1.4px, transparent 1.6px);
  background-size:
    170px 170px,
    220px 220px,
    260px 260px;
  background-position:
    0 0,
    30px 50px,
    90px 20px;
  opacity: 0.65;
  animation: search-hero-particles 18s linear infinite;
}

.search-hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(28px, 4vh, 40px);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: search-fade-up 0.65s ease-out both;
}

.search-hero-form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  animation: search-fade-up 0.72s ease-out 0.1s both;
}

.search-hero-input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  border: 2px solid rgba(135, 180, 255, 0.55);
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: #f3f5f8;
  font-size: 16px;
  color: #1a202c;
  outline: none;
  box-sizing: border-box;
}

.search-hero-input::placeholder {
  color: #8a94a6;
}

.search-hero-input:focus {
  border-color: #5eb8ff;
  box-shadow: 0 0 0 3px rgba(94, 184, 255, 0.25);
}

.search-hero-submit {
  flex-shrink: 0;
  width: 64px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 0 12px 12px 0;
  background: #03bcbe;
  color: #1a202c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.search-hero-submit:hover {
  background: #02a8aa;
}

.search-hero-submit svg {
  width: 22px;
  height: 22px;
}

@keyframes search-fade-up {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes search-hero-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes search-hero-glow {
  0%,
  100% {
    transform: translateX(-3%);
    opacity: 0.5;
  }
  50% {
    transform: translateX(5%);
    opacity: 0.72;
  }
}

@keyframes search-hero-particles {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-42px, 26px, 0);
  }
}

.search-main {
  background: #fff;
  min-height: 48vh;
  padding: clamp(48px, 8vh, 80px) 17vw clamp(64px, 10vh, 96px);
  box-sizing: border-box;
}

.search-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.search-empty-icon {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  margin: 0 auto clamp(24px, 3vh, 32px);
  display: block;
}

.search-empty-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: #1a2b4a;
}

.search-empty-desc {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  color: #8a94a6;
  line-height: 1.6;
}

.search-results {
  max-width: 1100px;
  margin: 0 auto;
}

.search-results[hidden] {
  display: none !important;
}

.search-empty[hidden] {
  display: none !important;
}

.search-section {
  margin-bottom: 40px;
}

.search-section-title {
  margin: 0 0 20px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #1a2b4a;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eef4;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-link {
  display: block;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e8eef4;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-result-link:hover {
  border-color: #03bcbe;
  box-shadow: 0 4px 16px rgba(3, 188, 190, 0.12);
}

.search-result-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #1a2b4a;
}

.search-result-meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.search-highlight,
.search-result-title .search-highlight,
.search-result-meta .search-highlight {
  color: #03bcbe;
  background: transparent;
  font-weight: 700;
  padding: 0;
}

.search-status {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  padding: 24px 0;
}

.search-no-results {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 6vh, 48px) 0;
}

.search-no-results[hidden] {
  display: none !important;
}

.search-no-results-icon {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  margin: 0 auto clamp(24px, 3vh, 32px);
  display: block;
}

.search-no-results-text {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 17px);
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 1500px) {
  .search-hero,
  .search-main {
    padding-left: calc(17vw + 14px);
    padding-right: 17vw;
  }
}

@media (max-width: 750px) {
  .search-hero {
    min-height: 4.8rem;
    padding: 1.72rem 0.48rem 0.78rem;
  }

  .search-hero-title {
    font-size: 0.56rem;
    margin-bottom: 0.4rem;
  }

  .search-hero-input {
    height: 0.88rem;
    font-size: 0.28rem;
    padding: 0 0.28rem;
    border-width: 1px;
  }

  .search-hero-submit {
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 0 0.16rem 0.16rem 0;
  }

  .search-hero-submit svg {
    width: 0.36rem;
    height: 0.36rem;
  }

  .search-main {
    padding: 0.64rem 0.48rem 0.8rem;
  }

  .search-empty-title {
    font-size: 0.4rem;
  }

  .search-empty-desc {
    font-size: 0.28rem;
  }

  .search-no-results-text {
    font-size: 0.28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-hero,
  .search-hero::before,
  .search-hero::after,
  .search-hero-title,
  .search-hero-form {
    animation: none !important;
  }
}
