/* =========================================================
   SEARCH PAGE
   ========================================================= */
.search-section {
  padding-top: 42px;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 147, 205, .12), transparent 320px),
    radial-gradient(circle at 92% 12%, rgba(0, 37, 202, .12), transparent 360px),
    linear-gradient(180deg, #f3f8ff 0%, #fff 280px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 47, 122, .08);
}

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.search-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--primary);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, .08);
}

.search-panel button {
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(90deg, #0025CA, #0093CD);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--motion), transform var(--motion), background var(--motion-fast);
}

.search-panel button:hover {
  box-shadow: 0 12px 24px rgba(0, 37, 202, .20);
  transform: translateY(-2px);
}

.search-summary {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.search-summary strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.search-result-list {
  display: grid;
  gap: 12px;
}

.search-result-card a {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--motion-fast), box-shadow var(--motion), transform var(--motion);
}

.search-result-card a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.search-result-card h2 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.search-result-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.search-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .search-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .search-result-card a { padding: 16px; }
  .search-result-card h2 { font-size: 18px; }
  .search-result-card p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .search-field input,
  .search-panel button,
  .search-result-card a {
    transition: none;
  }
}

@media (hover: none) {
  .search-panel button:hover,
  .search-result-card a:hover {
    transform: none;
  }
}
