/* Styles pour la recherche */
.search-trigger {
  cursor: pointer;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-container .form-control {
  border-radius: 25px;
  padding-right: 60px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-input-container .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-btn {
  position: absolute;
  right: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
}

/* Suggestions de recherche */
.search-suggestions {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
}

.suggestions-header {
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.suggestion-type {
  font-size: 0.85em;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 500;
}

/* Page de résultats de recherche */
.search-results-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.search-query {
  color: #007bff;
  font-weight: 600;
}

.search-stats {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.search-filters {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.filter-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 0.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
}

.filter-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.search-result-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.result-type-article {
  background: #e3f2fd;
  color: #1976d2;
}

.result-type-faq {
  background: #f3e5f5;
  color: #7b1fa2;
}

.result-type-comparison {
  background: #e8f5e8;
  color: #388e3c;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

.result-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.result-title a:hover {
  color: #007bff;
}

.result-excerpt {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c757d;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Pagination */
.search-pagination {
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-filters {
    padding: 1rem;
  }

  .result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .search-result-item {
    padding: 1rem;
  }
}

/* Animation pour le chargement */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6c757d;
}

.search-loading .spinner-border {
  margin-right: 0.5rem;
}
