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

body {
  font-family: 'Inter', sans-serif;

  background:
    linear-gradient(
      135deg,
      #fff8e7 0%,
      #eefbea 35%,
      #e7f8ef 70%,
      #f6fff2 100%
    );

  color: #1f2d22;

  min-height: 100vh;

  overflow-x: hidden;

  position: relative;
}



/* =========================
   BACKGROUND
========================= */

.background-glow {
  position: fixed;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background: rgba(112,182,88,0.18);

  filter: blur(120px);

  top: -180px;
  left: -180px;

  z-index: 0;

  pointer-events: none;
}

.background-glow.second {
  background: rgba(255,210,95,0.18);

  top: auto;
  left: auto;

  bottom: -180px;
  right: -180px;
}



/* =========================
   CONTAINER
========================= */

.container {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 980px;

  margin: 0 auto;

  padding: 70px 24px;
}



/* =========================
   BACK BUTTON
========================= */

.back-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 14px 20px;

  border-radius: 999px;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  backdrop-filter: blur(16px);

  color: #426234;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 36px;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.back-button:hover {
  transform: translateY(-2px);

  background: rgba(255,255,255,0.88);

  box-shadow:
    0 10px 24px rgba(112,182,88,0.1);
}



/* =========================
   WRAPPER
========================= */

.recipe-wrapper {
  display: flex;
  flex-direction: column;

  gap: 28px;
}



/* =========================
   HERO CARD
========================= */

.recipe-hero {
  position: relative;

  overflow: hidden;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  border-radius: 36px;

  padding: 40px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 20px 50px rgba(36,51,38,0.06);
}

.recipe-hero::before {
  content: '';

  position: absolute;

  width: 240px;
  height: 240px;

  border-radius: 50%;

  background: rgba(255,210,95,0.12);

  filter: blur(70px);

  top: -100px;
  right: -100px;
}



/* =========================
   TOP
========================= */

.recipe-top {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 30px;
}

.recipe-emoji {
  width: 78px;
  height: 78px;

  border-radius: 24px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 34px;

  background:
    linear-gradient(
      135deg,
      rgba(112,182,88,0.2),
      rgba(255,210,95,0.2)
    );

  border: 1px solid rgba(112,182,88,0.12);
}

.recipe-category {
  padding: 12px 18px;

  border-radius: 999px;

  background: rgba(112,182,88,0.1);

  color: #5f8d46;

  font-size: 13px;

  font-weight: 700;
}



/* =========================
   TEXT
========================= */

.recipe-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);

  line-height: 0.95;

  letter-spacing: -0.06em;

  margin-bottom: 24px;

  background:
    linear-gradient(
      135deg,
      #1f2d22,
      #5f8d46
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recipe-description {
  max-width: 720px;

  color: rgba(31,45,34,0.72);

  line-height: 1.8;

  font-size: 17px;

  margin-bottom: 36px;
}



/* =========================
   STATS
========================= */

.recipe-stats {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));

  gap: 16px;
}

.stat-card {
  padding: 20px;

  border-radius: 24px;

  background: rgba(255,255,255,0.62);

  border: 1px solid rgba(112,182,88,0.1);
}

.stat-label {
  display: block;

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: rgba(31,45,34,0.46);

  margin-bottom: 10px;
}

.stat-value {
  font-size: 24px;

  font-weight: 700;

  color: #1f2d22;
}



/* =========================
   CONTENT GRID
========================= */

.recipe-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;
}



/* =========================
   CARDS
========================= */

.content-card {
  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  border-radius: 32px;

  padding: 32px;

  backdrop-filter: blur(18px);

  box-shadow:
    0 12px 36px rgba(36,51,38,0.05);
}

.content-card h2 {
  font-size: 30px;

  margin-bottom: 24px;

  letter-spacing: -0.04em;

  color: #1f2d22;
}



/* =========================
   LISTS
========================= */

.ingredients-list,
.steps-list {
  display: flex;

  flex-direction: column;

  gap: 14px;
}

.ingredients-list li,
.steps-list li {
  list-style: none;

  position: relative;

  padding-left: 20px;

  color: rgba(31,45,34,0.76);

  line-height: 1.7;
}

.ingredients-list li::before {
  content: '•';

  position: absolute;

  left: 0;

  color: #79b357;

  font-weight: bold;
}

.steps-list li::before {
  content: '→';

  position: absolute;

  left: 0;

  color: #e1aa2d;

  font-weight: bold;
}



/* =========================
   LOADING
========================= */

.loading-card {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 18px;

  padding: 80px;

  border-radius: 36px;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  backdrop-filter: blur(18px);
}

.loading-card p {
  color: rgba(31,45,34,0.62);

  font-size: 15px;
}

.loading-circle {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  border:
    4px solid rgba(112,182,88,0.15);

  border-top:
    4px solid #79b357;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



/* =========================
   ERROR
========================= */

.error-card {
  text-align: center;

  padding: 70px 30px;

  border-radius: 36px;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  backdrop-filter: blur(18px);
}

.error-card h2 {
  font-size: 38px;

  margin-bottom: 14px;

  color: #1f2d22;
}

.error-card p {
  color: rgba(31,45,34,0.68);

  line-height: 1.7;
}



/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .recipe-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {

  .container {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .recipe-hero,
  .content-card {
    padding: 24px;
  }

  .recipe-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-title {
    line-height: 1;
  }

  .recipe-description {
    font-size: 15px;
  }

}

/* =========================
   QR BUTTON
========================= */

.recipe-actions {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-left: auto;
}

.mini-qr-btn {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  border: 1px solid rgba(112,182,88,0.14);

  background: rgba(255,255,255,0.72);

  backdrop-filter: blur(14px);

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 18px;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border 0.22s ease;
}

.mini-qr-btn:hover {
  transform: translateY(-2px);

  background: rgba(255,255,255,0.92);

  border:
    1px solid rgba(112,182,88,0.28);
}



/* =========================
   QR MODAL
========================= */

.qr-modal {
  position: fixed;

  inset: 0;

  background: rgba(10,14,11,0.5);

  backdrop-filter: blur(14px);

  display: flex;

  align-items: center;
  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: 0.25s ease;

  z-index: 9999;
}

.qr-modal.show {
  opacity: 1;

  pointer-events: auto;
}

.qr-content {
  width: 92%;
  max-width: 360px;

  background: rgba(255,255,255,0.88);

  border:
    1px solid rgba(112,182,88,0.14);

  border-radius: 30px;

  padding: 34px 28px;

  text-align: center;

  position: relative;

  backdrop-filter: blur(18px);

  animation:
    qrPop 0.25s ease;
}

@keyframes qrPop {

  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }

}

.close-qr {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 38px;
  height: 38px;

  border-radius: 12px;

  border: none;

  background: rgba(112,182,88,0.12);

  color: #426234;

  font-size: 16px;

  cursor: pointer;
}

.qr-content h2 {
  font-size: 28px;

  margin-bottom: 10px;
}

.qr-content p {
  color: rgba(31,45,34,0.68);

  margin-bottom: 24px;
}

#qr-code {
  display: flex;

  justify-content: center;
}
