/* Remedy Mechanisms Search Styles */

.remedy-search-container {
  margin: 2rem 0;
  padding: 0;
}

/* Search Form */
.remedy-search-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.remedy-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.remedy-search-input-wrapper:focus-within {
  border-color: #009BC9;
  box-shadow: 0 0 0 3px rgba(0, 155, 201, 0.1);
}

.remedy-search-input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px 0 0 12px;
  font-size: 16px;
  color: #2D0C59;
  background: transparent;
  outline: none;
  font-family: inherit;
}

.remedy-search-input::placeholder {
  color: #9ca3af;
}

.remedy-search-button {
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #009BC9;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  outline: none;
}

.remedy-search-button:hover,
.remedy-search-button:focus {
  background: #f3f4f6;
  color: #007a9e;
}

.remedy-search-button svg {
  width: 20px;
  height: 20px;
}

/* Search Results */
.remedy-search-results {
  margin-top: 2rem;
  padding: 0;
}

.remedy-search-results-count {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 1.5rem;
  padding: 0 4px;
}

.remedy-search-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Search Card */
.remedy-search-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.remedy-search-card:hover {
  border-color: #009BC9;
  box-shadow: 0 4px 12px rgba(0, 155, 201, 0.15);
  transform: translateY(-2px);
}

.remedy-search-card:focus {
  outline: 3px solid rgba(0, 155, 201, 0.3);
  outline-offset: 2px;
}

.remedy-search-card__header {
  margin-bottom: 1rem;
}

.remedy-search-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #2D0C59;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.remedy-search-card__title mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.remedy-search-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #009BC9;
  background: #e0f7fa;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remedy-search-card__category mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 3px;
}

.remedy-search-card__body {
  flex: 1;
  margin-bottom: 1rem;
}

.remedy-search-card__description {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.remedy-search-card__description mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.remedy-search-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.remedy-search-card__link-text {
  font-size: 14px;
  font-weight: 500;
  color: #009BC9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remedy-search-card:hover .remedy-search-card__link-text {
  color: #007a9e;
}

/* No Results */
.remedy-search-no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}

.remedy-search-no-results p {
  margin: 0.5rem 0;
  color: #6b7280;
  font-size: 16px;
}

.remedy-search-no-results p strong {
  color: #2D0C59;
  font-weight: 600;
}

.remedy-search-no-results__hint {
  font-size: 14px !important;
  color: #9ca3af !important;
  margin-top: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .remedy-search-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .remedy-search-card {
    padding: 1.25rem;
  }

  .remedy-search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .remedy-search-container {
    margin: 1.5rem 0;
  }

  .remedy-search-input-wrapper {
    border-radius: 8px;
  }

  .remedy-search-input {
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
  }

  .remedy-search-button {
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
  }
}



