.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-container {
  width: 90%;
  max-width: 800px;
  background: #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-header {
  background: #f0f0f0;
  padding: 20px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: white;
}

.search-close {
  background: #131836;
  height: 30px;
  width: 30px;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.search-close:hover {
  color: white;
  background: #ef332e;
}

.search-input-container {
  padding: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.enhanced-search-bar {
  position: relative;
  margin-bottom: 20px;
}

.enhanced-search-input {
  width: 100%;
  padding: 10px 50px 10px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.enhanced-search-input:focus {
  border-color: #131836;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.enhanced-search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #131836;
  cursor: pointer;
}

.search-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 15px;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-tag:hover {
  background-color: #ef332e;
  color: #fff;
}

.filter-tag.active {
  background: #131836;
  color: white;
}

.search-results-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 30px 30px;
}

.results-header {
  padding: 20px 0 15px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.result-item {
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #131836;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-category {
  font-size: 12px;
  background: #131836;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
}

.result-snippet {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

.highlight {
  background: #131836;
  color: white;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #131836;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #131836;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.search-suggestions {
  background: white;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:hover {
  background: #f8f9ff;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  color: #131836;
  font-size: 14px;
}

@media (max-width: 768px) {
  .search-overlay {
    padding-top: 80px;
  }

  .search-container {
    width: 95%;
    margin: 0 10px;
  }

  .search-input-container {
    padding: 20px;
  }

  .search-results-container {
    padding: 0 20px 20px;
  }

  .search-filters {
    justify-content: center;
  }
}
