.search-section {
  margin: 2rem 0 3rem;
  position: relative;
}

.search-stats {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 1.125rem 1.5rem;
  padding-right: 3.5rem;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
  outline: none;
  border-color: #6c757d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #adb5bd;
  font-size: 0.95rem;
}

.search-button {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-button:hover {
  color: #495057;
  transform: scale(1.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-results.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 0 12px 12px 0;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.search-result-item {
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.search-result-item:first-child .search-result-link {
  border-radius: 12px 12px 0 0;
}

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

.search-result-item:last-child .search-result-link {
  border-radius: 0 0 12px 12px;
}

.search-result-link {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}

.search-result-link:hover {
  background-color: #f8f9fa;
}

.search-result-link:hover .search-result-title {
  color: #008AFF;
}

.search-result-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.search-result-excerpt {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
  line-height: 1.6;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.search-result-date {
  font-size: 0.813rem;
  color: #a0aec0;
  font-weight: 500;
}

.search-result-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  background: #e8f4fd;
  color: #008AFF;
  border: 1px solid #b3d9f7;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-result-link:hover .search-result-tag {
  background: #d4ebfc;
  border-color: #008AFF;
  transform: translateY(-1px);
}

.search-no-results {
  padding: 3rem 2rem;
  text-align: center;
  color: #a0aec0;
  font-size: 1rem;
}

.search-no-results::before {
  content: '🔍';
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .search-section {
    margin: 1.5rem 0 2rem;
  }
  
  .search-stats {
    font-size: 0.8rem;
    margin-top: 0.625rem;
  }
  
  .search-input {
    padding: 1rem 1rem;
    padding-right: 3rem;
    font-size: 0.95rem;
  }
  
  .search-input::placeholder {
    font-size: 0.9rem;
  }
  
  .search-button {
    right: 0.75rem;
    padding: 0.375rem;
  }
  
  .search-button svg {
    width: 18px;
    height: 18px;
  }
  
  .search-results {
    max-height: 400px;
  }
  
  .search-result-link {
    padding: 1rem 1.25rem;
  }
  
  .search-result-title {
    font-size: 1rem;
  }
  
  .search-result-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .search-no-results {
    padding: 2rem 1rem;
  }
}

