@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@700&display=swap");

:root {
  --primary-color: #4f46e5;
  --secondary-color: #4338ca;
  --text-color: #1f2937;
  --light-gray: #f3f4f6;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fafafa;
  position: relative;
  background: linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cstyle%3E .icon %7B fill: %234F46E5; opacity: 0.05; %7D %3C/style%3E%3Cg%3E%3Cpath class='icon' d='M480 320h-64v64h-48v-64h-64v-48h64v-64h48v64h64v48zm-176-80h-48v-48h48v48zm-80-80h-48v48h48v-48zm-48 80v48h48v-48h-48zm80 80h48v-48h-48v48zm-80 80h48v-48h-48v48z'/%3E%3Cpath class='icon' transform='translate(50, 50)' d='M384 64c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm-64 128c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z'/%3E%3Cpath class='icon' transform='translate(300, 300)' d='M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z'/%3E%3C/g%3E%3C/svg%3E");
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(79, 70, 229, 0.03) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(79, 70, 229, 0.03) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(79, 70, 229, 0.01) 0%,
      transparent 50%
    );
  z-index: -1;
}

.container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  justify-content: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.radio-group label:hover {
  background: rgba(79, 70, 229, 0.1);
}

.input-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-color);
}

input[type="number"],
select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.time-input {
  display: flex;
  gap: 1rem;
}

.time-input input {
  flex: 2;
}

.time-input select {
  flex: 1;
}

button {
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

#alert {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 1.2rem 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

.recipe-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem;
  border-radius: 24px;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-gray);
}

.recipe-title {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.efficiency {
  background: var(--gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.ingredients,
.instructions,
.nutrition {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 16px;
}

.ingredients h3,
.instructions h3,
.nutrition h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredients h3::before {
  content: "🥗";
}

.instructions h3::before {
  content: "👩‍🍳";
}

.nutrition h3::before {
  content: "📊";
}

.ingredients ul,
.instructions ol {
  padding-left: 1.5rem;
}

.ingredients li,
.instructions li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.nutrition p {
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.nutrition p:last-child {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
#password-input {
  width: 100%;
  outline: none;
  
  padding: 10px;
  font-size: 16px;
  font-family: Verdana, sans-serif;
  letter-spacing: 0.125em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
#loadMore {
  margin-top: 3rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  padding: 1.2rem;
}

.hidden {
  display: none;
}

.evolution-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0.5rem 0 1.5rem;
  background: linear-gradient(45deg, #ff3d00, #ff9100, #ffea00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: colorShift 3s infinite;
}

@keyframes colorShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@media (max-width: 600px) {
  .time-input {
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  form {
    padding: 1.5rem;
  }

  .recipe-card {
    padding: 1.5rem;
  }

  .recipe-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .recipe-title {
    font-size: 1.4rem;
  }

  .efficiency {
    width: fit-content;
    margin: 0 auto;
  }

  .ingredients,
  .instructions,
  .nutrition {
    padding: 1rem;
  }

  .nutrition p:last-child {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .evolution-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 0.5rem;
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .radio-group {
    padding: 0.75rem;
  }

  .radio-group label {
    padding: 0.75rem;
    justify-content: center;
  }

  input[type="number"],
  select {
    padding: 0.75rem;
  }

  .recipe-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .ingredients h3,
  .instructions h3,
  .nutrition h3 {
    font-size: 1.1rem;
  }

  .ingredients li,
  .instructions li {
    font-size: 0.95rem;
  }

  #loadMore {
    max-width: 100%;
    margin-top: 2rem;
  }

  #alert {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.password-content {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.3s ease;
}

.password-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.password-content input {
  width: 100%;
  margin-bottom: 1rem;
}

.password-content button {
  margin-top: 1rem;
}

.password-error {
  color: var(--danger);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.buy-password {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.buy-password p {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.buy-password-btn {
  display: inline-block;
  background: #22c55e;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.buy-password-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

@media (max-width: 480px) {
  .password-content {
    padding: 1.5rem;
  }

  .buy-password {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .buy-password-btn {
    width: 100%;
    text-align: center;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
