/* ================================================================
   SEARCH OVERLAY  — full-screen dark backdrop with search panel
================================================================ */
.srch-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: 8vh;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.srch-overlay.srch-open { opacity: 1; visibility: visible; }
.srch-overlay.srch-open .srch-panel { transform: translateY(0) scale(1); opacity: 1; }

.srch-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,8,24,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.srch-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 660px;
  padding: 0 20px 40px;
  transform: translateY(-18px) scale(.97);
  opacity: 0;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .22s;
}

.srch-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.srch-brand {
  font-size: .72rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  display: flex; align-items: center; gap: .45rem;
}
.srch-brand i { color: var(--orange); font-size: .85rem; }

.srch-close-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
  border-radius: 9px; padding: .4rem .85rem;
  cursor: pointer; font-size: .78rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.srch-close-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.srch-close-btn i { font-size: .95rem; }
.srch-close-btn kbd {
  font-size: .6rem; font-family: inherit; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px; padding: 1px 5px;
}

.srch-form { margin-bottom: 22px; }
.srch-input-wrap {
  display: flex; align-items: center;
  background: #fff; border-radius: 18px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.2);
}
.srch-ico { color: #9ca3af; font-size: 1.1rem; flex-shrink: 0; }
.srch-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1.15rem; padding: 10px 14px;
  color: #1a1a2e; font-family: var(--body);
}
.srch-input::placeholder { color: #9ca3af; }
.srch-go-btn {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  background: var(--navy); border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.srch-go-btn:hover { background: var(--orange); transform: scale(1.06); }

.srch-section { margin-bottom: 18px; }
.srch-section-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.3); margin-bottom: 10px;
}
.srch-section-label i { color: var(--orange); font-size: .7rem; }

.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .36rem .88rem; border-radius: 50px;
  font-size: .775rem; font-weight: 600;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.srch-chip:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.srch-chip-red    { background: rgba(220,38,38,.2);  border-color: rgba(220,38,38,.3);  color: #fca5a5; }
.srch-chip-red:hover    { background: rgba(220,38,38,.4); color: #fff; }
.srch-chip-orange { background: rgba(255,108,0,.2);  border-color: rgba(255,108,0,.3);  color: #fdba74; }
.srch-chip-orange:hover { background: rgba(255,108,0,.4); color: #fff; }
.srch-chip-navy   { background: rgba(97,185,240,.15); border-color: rgba(97,185,240,.28); color: #93c5fd; }
.srch-chip-navy:hover   { background: rgba(97,185,240,.3); color: #fff; }
.srch-chip-tag { font-size: .72rem; color: rgba(255,255,255,.5); }
.srch-chip-tag:hover { color: #fff; }

.srch-hint { text-align: center; font-size: .7rem; color: rgba(255,255,255,.2); margin: 0; }
.srch-hint kbd {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; padding: 1px 6px; font-size: .65rem; font-family: inherit; color: rgba(255,255,255,.4);
}

/* Admin search bar (used inside admin pages) */
.adm-search-bar { margin-bottom: 20px; }
.adm-search-inner {
  display: flex; align-items: center;
  background: var(--adm-surface);
  border: 1.5px solid var(--adm-border);
  border-radius: 12px; padding: 0 14px 0 14px;
  gap: 10px; transition: border-color .2s;
}
.adm-search-inner:focus-within { border-color: #0055B3; }
.adm-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: .875rem; color: var(--adm-text); padding: 11px 0;
}
.adm-search-input::placeholder { color: var(--adm-text-muted); }
.adm-search-btn {
  flex-shrink: 0; padding: 6px 16px; border-radius: 8px;
  background: #00377B; color: #fff; border: none;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.adm-search-btn:hover { background: #0055B3; }
.adm-search-info { margin-top: 8px; font-size: .78rem; color: var(--adm-text-muted); }

@media (max-width: 480px) {
  .srch-overlay { padding-top: 5vh; }
  .srch-input   { font-size: 1rem; padding: 8px 10px; }
  .srch-go-btn  { width: 44px; height: 44px; }
  .srch-hint    { display: none; }
}


