/* ============================================================
   🔍 GP SEARCH BAR
   Sticky search bar under the navbar. Uses the same theme
   variables as the rest of the site (--primary/--secondary/--glow)
   so it automatically matches whatever theme is active.
   ============================================================ */

.gp-search-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(5,0,10,.85), rgba(5,0,10,0));
  backdrop-filter: blur(6px);
}

.gp-search-box {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 0 var(--glow);
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.gp-search-box:focus-within {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 25px var(--glow);
}

.gp-search-icon {
  font-size: 16px;
  opacity: .8;
  flex-shrink: 0;
}

.gp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: .3px;
}

.gp-search-input::placeholder {
  color: rgba(255,255,255,.4);
}

.gp-search-clear {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  cursor: pointer;
  display: none;
  padding: 4px;
  line-height: 1;
  transition: color .2s ease;
}

.gp-search-clear:hover {
  color: #fff;
}

.gp-search-wrap.has-text .gp-search-clear {
  display: block;
}

.gp-search-empty {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
}

.gp-search-wrap.no-results .gp-search-empty {
  display: block;
}

/* Cards hidden by the search filter */
.card.gp-hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .gp-search-wrap {
    padding: 14px 14px;
  }
  .gp-search-box {
    padding: 10px 14px;
  }
}
