.semantic-search-heading {
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.semantic-search-wrapper p.semantic-search-heading a,
.semantic-search-wrapper p.semantic-search-heading a:visited,
.semantic-search-wrapper p.semantic-search-heading a:hover,
.semantic-search-wrapper p.semantic-search-heading a:active {
  color: #fff !important;
  text-decoration: underline;
}

.semantic-search {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto;
}

.search-input-wrapper {
  display: inline-flex;
  align-items: center;
  background: white;
  border-radius: 5px;
  padding: 5px 15px;
  width: 100%;
  max-width: 720px;
}

.search-icon {
  width: 16px;
  height: 16px;
  fill: #666;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 16px;
  font-family: inherit;
  padding: 5px;
  background: transparent;
}

.clear-button {
  background: #f0f0f0;
  border: none;
  font-size: 20px !important;
  color: #666;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
}

.clear-button:hover {
  background: #e0e0e0;
  color: #333;
}

.search-overlay {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  right: -20px;
  max-width: 860px;
  max-height: 500px;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.results-container {
  padding: 8px;
  text-align: left;
}

.skeleton-card {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton.skeleton-title {
  height: 20px;
  width: 60%;
}

.skeleton.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton.skeleton-text.short {
  width: 70%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.result-card {
  display: block;
  padding: 16px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #eee;
  text-align: left;
}

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

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.result-title {
  font-weight: 600;
  font-size: 15px;
  color: #183f72;
}

.result-score {
  display: none;
  font-size: 12px;
  color: #285943;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: 8px;
}

.result-snippet {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.result-snippet strong {
  font-weight: 600;
  color: #333;
}

.result-meta {
  font-size: 12px;
  color: #888;
}

.result-type {
  text-transform: capitalize;
}

.result-section::before {
  content: ' > ';
  color: #ccc;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: #666;
}
