
/*!
 * Axcora Search
 * Modern search component with smooth animations and accessibility
 */

/* ==========================================================================
   SEARCH FOUNDATION
   ========================================================================== */
.search-widget {
  margin: 1rem 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-widget-input {
  flex: 1;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-widget-input:focus {
  border-color: #3b82f6;
}

.search-widget-button {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.search-widget-button:hover {
  background-color: #f3f4f6;
}

.search-widget-results {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  font-size: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h4 {
  margin: 0 0 0.5rem;
  font-size: 24px;
}

.search-result-item h4 a {
  color: #3b82f6;
  text-decoration: none;
}

.search-result-item h4 a:hover {
  text-decoration: underline;
}

.search-result-item p {
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

.search-result-item small {
  color: #9ca3af;
  font-size: 0.8rem;
}

.search-loading,
.search-no-results {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
}