/* ========== Global Styles ========== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #fdfdfd;
  color: #333;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

/* ========== Navbar Styling ========== */
.content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 25px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 15px;
  animation: slideInTop 0.6s ease-out;
  color: #e6dede;
  margin-top:8px;
  background: linear-gradient(90deg, white, e6dede);

}

.logo {
  width: 80px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.section{
display: flex;
  gap: 40px;
}


section{
display: flex;
  gap: 20px;
  margin-right:20px
}
/* ========== Form Controls (Dropdowns, Input, Button) ========== */
select,
input,
#Signup {
  margin-top: 5px;
  width:100px;      
}

/* Dropdown */
select {
  appearance: none;
  background-color: white;
  border: 2px solid #e6dede;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill='%23ff5722'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M7%2010l5%205%205-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1px center;
  background-size: 0px 0px;
  width: 150px;
  transition: all 0.3s ease;
}
select:focus {
  outline: none;
  border-color: #f0754f;
}

/* Input */
input {
  padding: 6px 15px;
  border: 2px solid #e6dede;
  border-radius: 8px;
  font-size: 1rem;
  width:30em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus {
  border-color: #f0754f;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.2);
  outline: none;
}

/* Button */
#loginbtn {
  padding: 8px 16px;
  background-color: #fff;
  color: #999494;
  border: 2px solid #e6dede;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}
#loginbtn:hover {
  background-color: #ff5722;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ========== Recipe Grid ========== */
#show,
.recipe-content,
#detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px auto;
  max-width: 1100px;
  padding: 0 15px;
}

/* ========== Recipe Card ========== */
.recipe-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-in;

}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.recipe-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.recipe-card h1,
.recipe-card h2,
.recipe-card h3 {
  margin: 16px 12px 8px;
  font-size: 1.25rem;
  color: #ff5722;
}
.recipe-card p {
  margin: 5px 12px;
  font-size: 0.95rem;
  color: #444;
}

.recipe-card button {
  margin: 12px;
  padding: 8px 14px;
  background-color: #fff;
  color: #999494;
  border: 2px solid #e6dede;

  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.recipe-card button:hover {
  background-color: #ff5722;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive Fixes ========== */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: stretch;
  }
  select,
  input,
  #loginbtn {
    width: 100%;
    max-width: 100%;
  }
  #show,
  .recipe-content,
  #detail {
    grid-template-columns: 1fr;
  }
}
