/* BASE */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  margin: 0;
  padding: 20px;
  color: #222;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SEARCH BOX */
.controls {
  max-width: 700px;
  margin: 0 auto 25px;
  display: flex;
  justify-content: center;
}

input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

input:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* GRID */
.meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

/* CARD */
.meal-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

/* CARD HOVER */
.meal-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* IMAGE */
.meal-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* IMAGE OVERLAY */
.meal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* CONTENT */
.meal-content {
  padding: 18px;
}

/* TITLE */
.meal-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

/* BADGES */
.badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* CATEGORY */
.badge.category {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #d2691e;
}

/* AREA */
.badge.area {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  color: #1e40af;
}

/* TEXT */
.meal-content p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

/* BUTTON */
button {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(255,106,0,0.3);
}

button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,106,0,0.5);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 40px;
  color: #777;
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  input {
    font-size: 14px;
  }

  .meal-content {
    padding: 15px;
  }
}

.ingredients {
  margin-top: 10px;
}

.ingredients h4 {
  margin-bottom: 5px;
}

.ingredients ul {
  padding-left: 18px;
  font-size: 13px;
  color: #444;
}

.links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.links a {
  text-decoration: none;
  font-size: 13px;
  color: #fff;
  background: #111;
  padding: 6px 10px;
  border-radius: 10px;
}
.ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.ing {
  font-size: 11px;
  background: #f3f3f3;
  padding: 3px 8px;
  border-radius: 12px;
}

.links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.links a {
  font-size: 12px;
  text-decoration: none;
  color: #ff4d6d;
  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}