/* ============================================================
   Hero — Atmospheric Hero, Search Pill, Live Suggestions,
          Meilisearch Results, Quick Chips, Trust Strip
   ============================================================ */

.opx-hero-clean {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 24px 36px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(219, 234, 254, 0.92) 0%, rgba(239, 246, 255, 0.65) 55%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #eff6ff 0%, #e0ecff 42%, #f4f8ff 78%, #ffffff 100%);
  overflow: hidden;
  text-align: center;
}
html[data-theme="dark"] .opx-hero-clean {
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(37, 99, 235, 0.24) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(7, 13, 27, 0) 100%),
    linear-gradient(180deg, #0b1428 0%, #091122 50%, #070d1b 100%);
}

.opx-blur-card {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .opx-blur-card { opacity: 0.35; }
.opx-blur-card.c1 { width: 240px; height: 110px; top: 14%; left: 3%; background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(255, 255, 255, 0.65)); }
.opx-blur-card.c2 { width: 220px; height: 95px; top: 10%; right: 2%; background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(255, 255, 255, 0.65)); }
.opx-blur-card.c3 { width: 230px; height: 90px; top: 38%; right: 11%; background: linear-gradient(135deg, rgba(147, 197, 253, 0.42), rgba(255, 255, 255, 0.6)); }
.opx-blur-card.c4 { width: 260px; height: 130px; bottom: 14%; left: 6%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(219, 234, 254, 0.55)); }
.opx-blur-card.c5 { width: 240px; height: 110px; bottom: 10%; right: 14%; background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.65)); }

.opx-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  margin: auto;
}
.opx-hero-clean h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--opx-ink);
  margin: 0 0 16px;
}
.opx-hero-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--opx-muted);
  max-width: 540px;
  margin: 0 auto 30px;
}

/* Search Pill */
.opx-pill {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.opx-pill-glow { display: none; }
.opx-pill-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--opx-surface);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  box-shadow: 0 16px 42px rgba(30, 58, 138, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
  overflow: hidden;
}
html[data-theme="dark"] .opx-pill-box {
  border-color: var(--opx-line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.16);
}
.opx-pill-box input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 10px;
  font-size: 0.95rem;
  color: var(--opx-ink);
  font-family: inherit;
}
.opx-pill-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--opx-surface-muted);
  border-radius: 999px;
  padding: 5px;
  margin: 2px;
}
.opx-pill-adv {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--opx-muted);
  text-decoration: none;
}
.opx-pill-adv:hover { color: var(--opx-blue); background: var(--opx-surface); }
.opx-pill-go {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--opx-blue);
  color: #ffffff;
  font-family: inherit;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.6);
}
.opx-pill-go:hover { filter: brightness(1.07); }

/* Live Search Panel (rendered under <body> with position: fixed by opx-search.js) */
.opx-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  background: var(--opx-surface);
  border: 1px solid var(--opx-line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.45);
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
}
.opx-search-hit {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--opx-ink);
  border-bottom: 1px solid var(--opx-line);
}
.opx-search-hit:hover,
.opx-search-hit:focus { background: var(--opx-surface-soft); }
.opx-search-hit-title { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.opx-search-hit-meta { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--opx-muted); }
.opx-search-empty { padding: 14px 18px; font-size: 0.85rem; color: var(--opx-muted); }
.opx-search-all {
  display: block;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--opx-blue);
  text-decoration: none;
  background: var(--opx-surface-soft);
}
.opx-search-all:hover { background: var(--opx-sky); }

/* Search Results Block (Meilisearch) */
.opx-results {
  margin-top: 22px;
  background: var(--opx-surface);
  border: 1px solid var(--opx-line);
  border-radius: 16px;
  box-shadow: var(--opx-shadow);
  overflow: hidden;
  text-align: left;
}
.opx-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--opx-line);
}
.opx-results-head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--opx-ink); }
.opx-results-count { font-size: 0.78rem; color: var(--opx-muted); }
.opx-result {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--opx-line);
  text-decoration: none;
  color: var(--opx-ink);
}
.opx-result:last-child { border-bottom: 0; }
.opx-result:hover,
.opx-result:focus { background: var(--opx-surface-soft); }
.opx-result-title { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.opx-result-meta { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--opx-muted); }

/* Quick Chips */
.opx-quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.opx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--opx-pill-bg);
  border: 1px solid var(--opx-line);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--opx-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.opx-chip:hover {
  background: var(--opx-surface);
  color: var(--opx-blue);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}
html[data-theme="dark"] .opx-chip:hover {
  background: var(--opx-surface-muted);
  color: var(--opx-blue-deep);
}

/* Trust Strip */
.opx-trust-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.opx-avatar-stack { display: flex; align-items: center; }
.opx-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--opx-surface);
  margin-left: -8px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.opx-avatar:first-child { margin-left: 0; }
.opx-trust-label { font-size: 0.78rem; font-weight: 600; color: var(--opx-muted); }
.opx-trust-label strong { color: var(--opx-ink); }

@media (max-width: 640px) {
  .opx-hero-clean { min-height: auto; padding: 32px 16px 36px; }
  .opx-pill-box input[type="search"] { font-size: 16px; }
  .opx-quick-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .opx-quick-chips::-webkit-scrollbar { display: none; }
}
