/* Search Component Styles */
.search-container {
  position: relative;
  width: 100%;
}

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

#search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  font-size: 16px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

#search-input:focus {
  border-color: #007acc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.15);
}

.search-clear {
  position: absolute;
  right: 15px;
  font-size: 22px;
  color: #adb5bd;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  line-height: 1;
}

.search-clear:hover {
  color: #495057;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  text-align: left;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.search-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #adb5bd;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.search-close:hover {
  color: #343a40;
}

#search-results-list {
  padding: 8px 0;
}

.search-result-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.2s;
}

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

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

.search-result-item h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
}

.search-result-item h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.search-result-item h3 a:hover {
  color: #007acc;
}

.search-result-summary {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
}

.search-result-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #adb5bd;
}

.search-result-date {
  color: #868e96;
}

.search-result-categories {
  color: #007acc;
  font-weight: 500;
}

mark {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}