/* ==========================================
   Meal Finder Stylesheet (style.css)
   Course: MIS455 Final Assessment
   Author: MD. Ozaire Wasit (2222425)
   ========================================== */

body {
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
}

/* 1. Header Styling */
header {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.developer-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 13px;
  padding: 5px 15px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* 2. Search Box */
.search-box {
  max-width: 600px;
  margin: 20px auto 0 auto;
}

/* 3. Meal Card Styling */
.meal-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.meal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.meal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.meal-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.meal-id-badge {
  display: inline-block;
  background-color: #343a40;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.meal-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.meal-category {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.instructions-box {
  background-color: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
  margin-top: auto;
}

/* 4. Show All Button */
#show-all-btn {
  background-color: #ff6b6b;
  color: white;
  font-weight: bold;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
  cursor: pointer;
}

#show-all-btn:hover {
  background-color: #e05656;
}

/* 5. Footer Styling */
footer {
  background-color: #212529;
  color: #aaa;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
}

.student-info-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

footer a {
  color: #ff8e53;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
