/*
 * BAUDHYANTRAM — Universal Search
 * search.css
 */

/* ── Result Card ───────────────────────────────────────────────────────── */
.bsg-search-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bsg-search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(27,42,74,.1);
  border-color: rgba(212,98,26,.3);
}
.bsg-search-card-img {
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.bsg-search-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bsg-search-card-icon {
  aspect-ratio: 16/5;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.bsg-search-card-wisdom {
  padding: 1.2rem;
  background: linear-gradient(135deg, #fffbf0, #fef9e7);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(201,165,80,.15);
  flex-shrink: 0;
}
.bsg-search-card-body {
  padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  flex: 1;
}
.bsg-search-type-badge {
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  border-radius: 20px; padding: .18rem .55rem;
  display: inline-flex; align-items: center;
}
.bsg-search-card-title {
  font-size: .88rem; font-weight: 800;
  color: #1e293b; line-height: 1.35;
}
.bsg-search-card-excerpt {
  font-size: .76rem; color: #64748b;
  line-height: 1.5; flex: 1;
}
.bsg-search-card-meta {
  display: flex; align-items: center; gap: .6rem;
  flex-wrap: wrap; margin-top: .25rem;
  font-size: .7rem; color: #94a3b8;
}

/* ── Pagination Buttons ────────────────────────────────────────────────── */
.bsg-search-page-btn {
  font-size: .78rem; font-weight: 600;
  padding: .35rem .75rem; border-radius: 8px;
  background: #f1f5f9; color: #1B2A4A;
  text-decoration: none; transition: background .15s, color .15s;
}
.bsg-search-page-btn:hover { background: #e2e8f0; color: #1B2A4A; }
.bsg-search-page-btn.active {
  background: #1B2A4A; color: #fff;
}

/* ── Navbar Search Overlay ─────────────────────────────────────────────── */
#headerSearch {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgba(15, 23, 42, 0);
  pointer-events: none;
  transition: background .25s ease;
}
#headerSearch.open {
  background: rgba(15, 23, 42, .72);
  pointer-events: all;
  backdrop-filter: blur(4px);
}
.bsg-search-overlay-box {
  width: 100%;
  max-width: 620px;
  margin: 0 1rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
  transform: translateY(-16px) scale(.97);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
#headerSearch.open .bsg-search-overlay-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.bsg-search-overlay-inner {
  display: flex; align-items: center; gap: .5rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid #e2e8f0;
}
.bsg-search-overlay-inner input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; color: #1e293b;
  font-family: inherit;
}
.bsg-search-overlay-inner input::placeholder { color: #94a3b8; }
#searchClose {
  background: none; border: none;
  color: #94a3b8; cursor: pointer; font-size: 1rem; padding: .3rem;
  transition: color .15s;
}
#searchClose:hover { color: #374151; }
.bsg-search-overlay-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.2rem;
  background: #f8fafc;
}
.bsg-search-overlay-tips {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.bsg-search-overlay-tip {
  font-size: .7rem; color: #94a3b8;
}
.bsg-search-overlay-tip kbd {
  font-size: .65rem; background: #e2e8f0; color: #64748b;
  border-radius: 4px; padding: .1rem .35rem;
  border-bottom: 2px solid #cbd5e1; font-family: inherit;
}
.bsg-search-overlay-suggestions {
  padding: .9rem 1.2rem;
}
.bsg-search-overlay-suggestions-title {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8; margin-bottom: .55rem;
}
.bsg-search-overlay-suggestion-pills {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.bsg-search-overlay-pill {
  font-size: .76rem; color: #374151;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: .2rem .75rem;
  text-decoration: none; transition: background .12s, border-color .12s;
}
.bsg-search-overlay-pill:hover {
  background: rgba(212,98,26,.07);
  border-color: rgba(212,98,26,.3);
  color: #D4621A;
}

/* ── Live suggestion list (in overlay) ────────────────────────────────── */
.bsg-search-live-list {
  list-style: none; padding: 0; margin: 0;
}
.bsg-search-live-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1.2rem;
  text-decoration: none; color: #374151;
  font-size: .85rem;
  transition: background .1s;
  border-bottom: 1px solid #f1f5f9;
}
.bsg-search-live-item:last-child { border-bottom: none; }
.bsg-search-live-item:hover { background: rgba(212,98,26,.04); }
.bsg-search-live-item-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
}
.bsg-search-live-item-meta {
  font-size: .68rem; color: #94a3b8; margin-left: auto; flex-shrink: 0;
}
