/* Search Results Styling */
.search-result-item {
  transition: all 0.2s ease-in-out;
}

.search-result-item:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.search-result-item:active {
  transform: translateY(0);
}

/* Line clamp for description text */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Search input focus styles */
#searchInput:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

/* Search results dropdown animation */
#searchResults {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for search */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.search-loading .spinner {
  border: 2px solid #f3f4f6;
  border-top: 2px solid #8b5cf6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Search result icons */
.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Category badges */
.category-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}

/* Skill focus tags */
.skill-focus-tag {
  font-size: 0.75rem;
  color: #8b5cf6;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #searchResults {
    max-width: calc(100vw - 2rem);
    left: 1rem;
    right: 1rem;
  }
  
  .search-result-item {
    padding: 0.75rem;
  }
  
  .search-result-icon {
    width: 28px;
    height: 28px;
  }
} 