/* --- COOKING SIMULATOR STYLES --- */

.cooking-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 25px;
  margin-top: 20px;
}

/* LEFT SIDE: RECIPE LIST */
.recipe-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 2px solid #bdc3c7;
  padding: 15px;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.search-area { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
.filter-tags { display: flex; gap: 5px; margin-top: 10px; justify-content: center; }
.tag {
  background: #eee; padding: 5px 10px; border-radius: 15px; cursor: pointer; font-size: 12px; font-weight: bold;
}
.tag:hover, .tag.active { background: #f1c40f; color: #d35400; }

.scrollable-list {
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: 0.2s;
}
.list-item:hover { background: #e0f7fa; border-color: #2ecc71; transform: translateX(5px); }
.list-item.selected { background: #2ecc71; color: white; border-color: #27ae60; }

/* RIGHT SIDE: COOKING STATION */
.cooking-station {
  background: #fff;
  border-radius: 16px;
  border: 4px solid #34495e;
  padding: 20px;
  text-align: center;
  position: relative;
  background-image: radial-gradient(#ecf0f1 15%, transparent 16%), radial-gradient(#ecf0f1 15%, transparent 16%);
  background-size: 20px 20px;
}

/* THE OVEN UI */
.oven-display {
  background: #2c3e50;
  height: 200px;
  border-radius: 20px;
  margin: 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #95a5a6;
  overflow: hidden;
}
.oven-content { color: white; font-size: 60px; z-index: 2; }
.placeholder-text { font-size: 16px; color: #bdc3c7; }

/* Ingredients Display */
.ingredients-required {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.ing-badge {
  background: #fff; border: 2px solid #bdc3c7; padding: 8px 12px; border-radius: 10px; font-weight: bold; color: #555; font-size: 14px;
}

/* Result Popup */
.cook-result {
  background: #dff9fb;
  border: 3px solid #2ecc71;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.result-title { font-size: 24px; font-family: 'Fredoka One'; color: #27ae60; margin: 10px 0; }
.result-buff { background: #f1c40f; color: #d35400; padding: 5px 15px; border-radius: 20px; font-weight: bold; display: inline-block;}

@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* SHAKE ANIMATION (Cooking) */
.shaking { animation: shake 0.5s infinite; }
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .cooking-layout { grid-template-columns: 1fr; }
  .recipe-sidebar { height: 300px; }
}