:root {
  /* Premium Warm Palette */
  --color-primary: #E67E22;
  /* Warm sophisticated orange */
  --color-primary-dark: #D35400;
  /* Darker orange for interactions */
  --color-secondary: #F39C12;
  /* Golden orange */
  --color-background: #FDF2E9;
  /* Very light subtle creamy background */
  --color-surface: #FFFFFF;
  --color-text-main: #2D3436;
  /* Soft black */
  --color-text-muted: #636E72;
  /* Muted grey */

  /* Modern Elements */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(230, 126, 34, 0.15);
  --shadow-lg: 0 20px 40px rgba(230, 126, 34, 0.2);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 100px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-background);
  background-image:
    radial-gradient(at 0% 0%, hsla(28, 100%, 74%, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(43, 100%, 80%, 0.2) 0px, transparent 50%);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Better for mobile scrolling */
  padding: 40px 20px;
  line-height: 1.6;
}

.app-container {
  width: 100%;
  max-width: 550px;
  /* Slightly wider for better readability */
  margin: 0 auto;
}

.app-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.app-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Cook Mode Button */
/* Cook Mode Button */
.cook-mode-btn {
  background: var(--color-surface);
  border: 2px solid rgba(230, 126, 34, 0.15);
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.cook-mode-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cook-mode-btn[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.cook-mode-btn[aria-pressed="true"] .icon {
  filter: brightness(0) invert(1);
}

/* Calculator Card */
/* Calculator Card */
.calculator-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.calculator-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Input Section */
/* Input Section */
.input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  background: rgba(230, 126, 34, 0.03);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 126, 34, 0.08);
}

.input-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-surface);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  width: 100%;
  max-width: 300px;
}

.input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.control-btn {
  width: 44px;
  height: 44px;
  border: none;
  background-color: var(--color-background);
  color: var(--color-primary);
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: bold;
}

.control-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: rotate(90deg);
  /* Playful interaction for plus/minus */
}

.control-btn.minus:hover {
  transform: rotate(-180deg);
  /* Distinct interaction */
}

.control-btn:active {
  transform: scale(0.9);
}

input[type="number"] {
  width: 80px;
  border: none;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-main);
  background: transparent;
  outline: none;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Ingredients List */
/* Ingredients List */
.ingredients-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
  font-weight: 800;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.ingredient-item:hover {
  transform: translateX(5px);
  border-color: var(--color-secondary);
}

.ingredient-name {
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingredient-value {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.15rem;
  background: rgba(230, 126, 34, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
}

.unit {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.app-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  opacity: 0.8;
  margin-top: 12px;
}

/* Preparation Section */
/* Preparation Section */
.preparation-section {
  margin-top: 48px;
  position: relative;
}

.preparation-section h2 {
  font-size: 1.4rem;
  margin-bottom: 32px;
  color: var(--color-text-main);
  font-weight: 800;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  background: var(--color-surface);
  padding: 24px 24px 24px 70px;
  /* Space for the number */
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

/* Step Number Badge */
.step-card::before {
  content: attr(data-step);
  /* We can implement this in HTML or use CSS counters */
  position: absolute;
  left: -12px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
  border: 3px solid var(--color-surface);
  /* Separator ring */
}

/* Connecting Line (Optional Timeline Effect) */
.steps-list {
  position: relative;
  padding-left: 12px;
  /* Offset for line */
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 20px;
  /* Align with badges center */
  top: 40px;
  bottom: 0px;
  width: 2px;
  background: rgba(230, 126, 34, 0.15);
  z-index: -1;
}


.step-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.step-card h3 {
  display: none;
  /* Hide original textual h3 if we use the badge */
}

.step-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .calculator-card {
    padding: 24px;
  }

  .step-card {
    padding-left: 24px;
    /* Reset padding for mobile */
    padding-top: 50px;
    /* Make room for badge on top */
  }

  .step-card::before {
    left: 20px;
    top: -15px;
    /* Floating on top edge */
  }

  .steps-list::before {
    left: 40px;
    /* Adjust line */
  }
}