/* ── Reset & base ─────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────── */
header {
  background: #990000;
  color: white;
  text-align: center;
  padding: 40px 20px 32px;
}

header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

header p {
  font-size: 16px;
  opacity: 0.85;
}

/* ── Search bar ────────────────────────────────── */
.search-section {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#search-input {
  width: 380px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  outline: none;
}

#search-input:focus {
  border-color: #990000;
}

#search-btn {
  padding: 12px 28px;
  background: #990000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#search-btn:hover { background: #7a0000; }
#search-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── Status message ────────────────────────────── */
#status-msg {
  text-align: center;
  padding: 20px;
  font-size: 15px;
  color: #555;
  min-height: 28px;
}

/* ── Results grid ──────────────────────────────── */
#results {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 32px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Individual meal card ──────────────────────── */
.meal-card {
  background: white;
  border-radius: 12px;
  width: 260px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.meal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.meal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-body h3 {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.watch-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  background: #990000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.2s;
}

.watch-btn:hover { background: #7a0000; }
