/**
 * Styles for search results page
 */

/* Search summary */
.search-summary {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.search-summary h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.search-count {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Active filters */
.active-filters {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa !important;
  border-radius: 4px;
  font-size: 0.95rem;
  color: black !important;
}

.active-filter {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.active-filter strong {
  color: #0066cc !important;
}

/* Search results */
.search-results {
  margin-top: 2rem;
}

.search-result-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: box-shadow 0.2s ease;
}

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

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.search-result-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #0066cc;
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.search-result-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.search-result-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.search-result-title a {
  color: #0066cc !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: #004c99;
  text-decoration: underline;
}

.search-result-summary {
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.search-result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066cc !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.search-result-link:hover {
  color: #004c99;
}

.search-result-link::after {
  content: '→';
  font-size: 1.25rem;
}

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

.no-results p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Pagination */
.pager {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pager__item {
  list-style: none;
}

.pager__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pager__link:hover {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.pager__item--active .pager__link {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
  font-weight: 600;
}

/* Highlighted keyword */
.search-keyword-highlight {
  background-color: #fff3cd;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-weight: 600;
  color: black;
}

/* Loading state */
.search-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.search-loading::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .search-summary h1 {
    font-size: 1.5rem;
  }

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

  .search-result-title {
    font-size: 1.25rem;
  }

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