/* search-bar.css — Styles for the search bar component on the homepage */

/* Fixed, centered search bar container under the header */
.search-bar-container {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 998;
}

/* Main glassy search bar input with blur and white border */
.search-bar {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 700px;
  color: white;
  box-sizing: border-box;
  outline: none;
  z-index: 1;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

/* Animated drifting glass blur behind the search bar */
.search-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  z-index: -1;
  background: inherit;
  backdrop-filter: blur(30px) saturate(250%);
  -webkit-backdrop-filter: blur(30px) saturate(250%);
  animation: longDrift 40s ease-in-out infinite;
  transform: translateX(0);
}

/* Chromatic horizontal inner glow effect */
.search-bar::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 180, 255, 0.25) 0%,
    rgba(200, 230, 255, 0.5) 50%,
    rgba(0, 180, 255, 0.25) 100%
  );
  opacity: 0.6;
  mix-blend-mode: screen;
  box-shadow:
    inset 0 0 8px rgba(150, 220, 255, 0.3),
    inset 0 0 16px rgba(100, 150, 255, 0.15);
}

/* Frosted glass-style placeholder text */
.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.35);
  text-shadow:
    0 0 2px rgba(150, 200, 255, 0.25),
    0 0 5px rgba(120, 200, 255, 0.15);
}

/* Animation for glass drift effect */
@keyframes longDrift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-25%); }
  100% { transform: translateX(0); }
}
