/* Search Page Overhaul */
.search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.search-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}

.search-form {
  margin-bottom: 3.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--cms-color-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-input-row {
  display: flex;
  gap: 0.75rem;
}

.search-input-row input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--cms-color-border, #e2e8f0);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}

.search-input-row input:focus {
  background: white;
  border-color: var(--cms-primary-color, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.search-results-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.search-results-header h2 strong {
  color: #0f172a;
  font-weight: 800;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Search Result Card */
.search-result {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--cms-color-border, #e2e8f0);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result:hover {
  border-color: #cbd5e1;
  transform: translateX(4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.search-result__image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #f1f5f9;
}

.search-result__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result__module {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cms-primary-color, #2563eb);
  margin-bottom: 0.5rem;
  background: rgba(37, 99, 235, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.search-result__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.search-result__slug {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.search-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  color: #64748b;
}

.search-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .search-result {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-result__image {
    width: 100%;
    height: 160px;
  }
}

