*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffe0b2, #ffccbc);
  color: #4a2c2a;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.app-header {
  text-align: center;
  margin-bottom: 1rem;
}

.app-header h1 {
  margin: 0;
  font-size: 2.1rem;
}

.app-header p {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.pot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.pot-wrapper {
  position: relative;
  width: 160px;
  height: 150px;
}

.pot {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to top, #6d4c41, #8d6e63);
  border-radius: 25px 25px 18px 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.pot::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 10%;
  width: 80%;
  height: 18px;
  background: #4e342e;
  border-radius: 12px;
}

.steam {
  position: absolute;
  bottom: 90px;
  width: 8px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  animation: steam 2.6s infinite ease-in-out;
}

.steam-1 { left: 35%; animation-delay: 0s; }
.steam-2 { left: 50%; animation-delay: 0.6s; }
.steam-3 { left: 65%; animation-delay: 1.2s; }

@keyframes steam {
  0%   { opacity: 0; transform: translateY(10px) scaleX(1); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-35px) scaleX(0.7); }
}

/* Shake beim Mixen */
.pot.shake {
  animation: pot-shake 0.7s ease-in-out;
}

@keyframes pot-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.chips {
  margin-top: 0.6rem;
  min-height: 32px;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 183, 77, 0.8);
  font-size: 0.85rem;
}

/* Filter-Section */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.9rem;
}

select {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(121, 85, 72, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

/* Buttons */

.actions,
.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

button {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  background: linear-gradient(to right, #ff7043, #ffa726);
  color: #fff;
  box-shadow: 0 3px 6px rgba(255, 87, 34, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(255, 87, 34, 0.5);
}

/* Suggestion */

.suggestion {
  text-align: center;
  margin-bottom: 0.75rem;
}

#suggestion-title {
  margin: 0;
  font-size: 1.25rem;
}

.selected-combo {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Rezept-Output & Saved */

.recipe-output textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(121, 85, 72, 0.45);
  padding: 0.7rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.95);
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.saved-recipes h3 {
  margin-bottom: 0.3rem;
}

#saved-recipes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#saved-recipes-list li {
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

/* Settings */

.settings-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
}

.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.settings-modal.hidden {
  display: none;
}

.settings-content {
  background: #fff8e1;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.settings-content h2 {
  margin-top: 0;
}

.settings-content input {
  width: 100%;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(121, 85, 72, 0.45);
}

.settings-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.8;
}
