/* ============================================================
   search.css  —  Navbar search dropdown styles
   ============================================================ */

.nav-search-wrap {
  position: relative;
}

/* ── Dropdown panel ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #021920;
  border: 1px solid rgba(96, 205, 18, 0.2);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 9999;
  animation: searchFadeIn 0.15s ease;
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Each result row ── */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(96, 205, 18, 0.06);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: rgba(96, 205, 18, 0.08);
}

/* icon */
.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(96, 205, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60cd12;
  font-size: 13px;
  flex-shrink: 0;
}

/* text */
.search-result-body {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-name mark {
  background: transparent;
  color: #60cd12;
  font-weight: 700;
}

.search-result-cat {
  font-size: 11px;
  color: #6b8f6b;
  margin-top: 2px;
}

/* arrow */
.search-result-arrow {
  color: rgba(96, 205, 18, 0.3);
  font-size: 11px;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.active .search-result-arrow {
  color: #60cd12;
  transform: translateX(3px);
}

/* no results */
.search-no-results {
  padding: 16px 14px;
  font-size: 13px;
  color: #6b8f6b;
  text-align: center;
}

.search-no-results strong {
  color: #b8d4b0;
}

/* ── Mobile dropdown ── */
.search-dropdown-mobile {
  position: static;
  width: 100%;
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: none;
  border-color: rgba(96, 205, 18, 0.15);
}