/* Axencia.co — Search Popup: World-Class Results UI */

.nav-search-li,
.nav-search-wrap {
  position: relative;
  overflow: visible !important;
}

.search-popup {
  position: fixed;
  min-width: 320px;
  max-width: 420px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s ease, visibility 0.3s;
  z-index: 99999;
  pointer-events: none;
}

.search-popup.visible {
  max-height: 480px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.search-popup-inner {
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 40px rgba(59, 130, 246, 0.08);
  overflow: hidden;
  animation: searchPopupReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes searchPopupReveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.search-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.search-popup-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.search-popup-kbd {
  font-size: 0.7rem;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  color: #93c5fd;
  font-family: inherit;
}

.search-popup-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-popup-results::-webkit-scrollbar {
  width: 6px;
}

.search-popup-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-popup-results::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.search-popup-group {
  padding: 4px 0;
}

.search-popup-group-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 8px 18px 6px;
}

.search-popup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: #e8e8ed;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
  animation: searchItemSlide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.search-popup-item:hover {
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #60a5fa;
  padding-left: 20px;
}

.search-popup-item:active {
  background: rgba(59, 130, 246, 0.18);
}

@keyframes searchItemSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.search-popup-item-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.search-popup-item-arrow {
  font-size: 0.85rem;
  color: #64748b;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}

.search-popup-item:hover .search-popup-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #60a5fa;
}

.search-popup-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  color: #64748b;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-popup-empty.visible {
  opacity: 1;
}

.search-popup-empty-icon {
  font-size: 1.2rem;
  opacity: 0.6;
}
