/* landing-search.css — full-screen glassy site search (command palette) for the
   marketing landing nav. Matches the glassy purple landing aesthetic. */

/* shared nav search-icon button (white icon for the glassy dark navs) */
.lsx-trigger {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}
.lsx-trigger:hover { background: rgba(255, 255, 255, 0.14); }
.lsx-trigger svg { display: block; }

.lsx {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 11vh 20px 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.lsx[hidden] {
  display: none;
}
.lsx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 6, 32, 0.6);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  animation: lsx-fade 0.18s ease;
}
.lsx-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: lsx-rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lsx-fade {
  from { opacity: 0; }
}
@keyframes lsx-rise {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
}

/* search box */
.lsx-box {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
  padding: 0 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  box-shadow: 0 24px 70px rgba(10, 4, 26, 0.45);
}
.lsx-box svg { flex: none; color: rgba(255, 255, 255, 0.8); }
.lsx-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lsx-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.lsx-esc {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* results */
.lsx-results {
  max-height: 52vh;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  box-shadow: 0 24px 70px rgba(10, 4, 26, 0.4);
  padding: 8px;
}
.lsx-results:empty { display: none; }
.lsx-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 12px 14px 6px;
}
.lsx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
}
.lsx-item.active,
.lsx-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lsx-item-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lsx-item-ic svg { color: #fff; }
.lsx-item-txt { flex: 1; min-width: 0; }
.lsx-item-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.lsx-item-sub {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lsx-item-cat {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}
.lsx-item.active .lsx-item-cat { background: rgba(255, 255, 255, 0.16); }
.lsx-empty {
  padding: 34px 16px;
  text-align: center;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* footer hints */
.lsx-foot {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.lsx-foot kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-right: 5px;
}

@media (max-width: 560px) {
  .lsx { padding-top: 7vh; }
  .lsx-box { height: 60px; padding: 0 16px; }
  .lsx-input { font-size: 18px; }
  .lsx-item-cat { display: none; }
  .lsx-foot { display: none; }
}
