/* ===============================
   Search Page Styles
   =============================== */

.search-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 400px;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.search-form input[type="text"]:focus {
  border-color: #015aa9;
  outline: none;
}

.search-form button {
  background: #015aa9;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.search-form button:hover {
  background: #00447e;
}

/* ===== Results grid ===== */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.search-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f3f3;
}

.search-card .title {
  margin-top: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.search-card .meta {
  font-size: 13px;
  color: #777;
}
