/* Landing unified search — cards / decks / players.
   Used on landing hero (desktop + mobile). Self-contained — no dependency on
   other CSS files beyond base font tokens inherited from main.css. */

.ls-search {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 12px;
  background: rgba(20, 26, 35, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  z-index: 20;
  pointer-events: auto;
}

.ls-search-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.ls-search input {
  flex: 1;
  height: 100%;
  padding: 0 18px 0 48px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}

.ls-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ls-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(14, 19, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px 0;
  z-index: 30;
}

.ls-dropdown[hidden] { display: none; }

.ls-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 10px 16px 6px;
  font-weight: 600;
}

.ls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s;
}

.ls-row--active,
.ls-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #7c9cff;
}

.ls-row-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-row-thumb--avatar {
  border-radius: 50%;
}

.ls-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(124, 156, 255, 0.22);
}

.ls-pips {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.ls-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.ls-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ls-row-name {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-row-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ls-row-right {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  flex: none;
}

.ls-row--empty,
.ls-row--error,
.ls-row--loading {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  cursor: default;
}

.ls-row--empty:hover,
.ls-row--error:hover,
.ls-row--loading:hover {
  background: transparent;
  border-left-color: transparent;
}

.ls-search--mobile {
  max-width: none;
  margin-top: 18px;
}

/* Clip guard: hero uses overflow:clip to contain the 3D flip — opening the
   dropdown requires the hero to release its clip, otherwise the dropdown is
   cut off at the hero bottom edge. JS toggles this class on .lbh-hero. */
.lbh-hero--search-open { overflow: visible !important; }

@media (max-width: 480px) {
  .ls-dropdown { max-height: 60vh; }
}

/* Hero container — wraps tagline, sub, and search bar as one composition.
   Dark smoked glass: roomy padding, subtle frost (low blur avoids GPU lag on
   the animated hero background), soft inner highlight + deep shadow. */
.ls-hero-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 56px 48px;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  pointer-events: auto;
}

.ls-hero-tagline {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
}

.ls-hero-sub {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ls-hero-box .ls-search {
  margin-top: 28px;
}

@media (max-width: 600px) {
  .ls-hero-box {
    padding: 36px 24px 32px;
    border-radius: 18px;
  }
  .ls-hero-box .ls-search { margin-top: 22px; }
}
