/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom Scrollbar */
.search-suggestions::-webkit-scrollbar {
  width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.search-suggestions-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggestions-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.search-suggestions-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-suggestions-item:hover,
.search-suggestions-item.focused {
  background-color: #f9fafb;
}

.search-suggestions-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-suggestions-item-icon.item {
  background-color: #eef2ff;
  color: #4f46e5;
}

.search-suggestions-item-icon.category {
  background-color: #fef3c7;
  color: #d97706;
}

.search-suggestions-item-icon.user {
  background-color: #e0f2fe;
  color: #0369a1;
}

.search-suggestions-item-icon.recent_search {
  background-color: #f3f4f6;
  color: #6b7280;
}

.search-suggestions-item-icon.popular_search {
  background-color: #fee2e2;
  color: #ef4444;
}

.search-suggestions-item-icon.search {
  background-color: #f3f4f6;
  color: #6b7280;
}

.search-suggestions-item-icon.popular_item {
  background-color: #dbeafe;
  color: #2563eb;
}

.search-suggestions-item-content {
  flex: 1;
  min-width: 0;
}

.search-suggestions-item-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions-item-subtext {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty state */
.search-suggestions-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
}

.search-suggestions-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #f3f4f6;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  color: #9ca3af;
  font-size: 1.25rem;
}

.search-suggestions-empty-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Loading state */
.search-suggestions-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
}

.search-suggestions-loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f4f6;
  border-radius: 9999px;
  border-top-color: #4f46e5;
  animation: spin 1s linear infinite;
  margin-bottom: 0.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-suggestions {
    max-height: 20rem;
  }
  
  .search-suggestions-item {
    padding: 0.75rem 1rem;
  }
  
  .search-suggestions-item-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

