body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #dbeafe;
}

/* NAVBAR */
.navbar {
  background: #1e293b;
  color: white;
  padding: 20px 40px;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: center;   /* center it */
  align-items: center;
}

/* SEARCH */
.controls {
  display: flex;
  justify-content: center;
  padding: 25px 20px 10px;
}

#search {
  width: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* TITLE */
h1 {
  text-align: center;
  margin: 10px 0 10px;
  font-size: 20px;       /* reduce size */
  font-weight: 500;      /* lighter */
  color: #555;           /* less contrast */
}

/* GRID */
#container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* CARD */
.card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* TOP ACCENT */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0;
}

/* TEXT */
.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  margin: 4px 0;
  color: #444;
}

.status {
  text-align: center;
  font-size: 18px;
  padding: 40px;
  color: #555;
}

.status.error {
  color: red;
}