/* ===== Search Page ===== */
.search-hero {
  background: linear-gradient(135deg, #1a5fc7 0%, #2B7AE8 100%);
  color: #fff;
  padding: 40px 0 36px;
  text-align: center;
}
.search-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  gap: 0;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  outline: none;
}
.search-bar button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.search-bar button:hover { background: #e67e3a; }

.search-hints {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.85;
}
.search-hints span { opacity: 0.7; }
.search-hints a {
  color: #fff;
  margin: 0 6px;
  text-decoration: underline;
}
.search-hints a:hover { opacity: 0.8; }

/* Result header */
.search-result-header {
  padding: 20px 0 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.result-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.result-card .result-cat {
  margin-bottom: 10px;
}
.result-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.result-card h3 a { color: var(--text); }
.result-card h3 a:hover { color: var(--primary); }
.result-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.result-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}
.result-card .read-more:hover { color: var(--primary-dark); }

/* Highlight */
.result-card mark {
  background: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
}

/* No result */
.no-result {
  text-align: center;
  padding: 60px 0;
}
.no-result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.no-result h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.no-result p {
  color: var(--text-light);
  margin-bottom: 20px;
}
.cat-links a {
  display: inline-block;
  background: #eef4ff;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  margin: 4px;
  font-size: 0.9rem;
}
.cat-links a:hover { background: #dceaff; }

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}
