/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Body */
body {
  background-color: #fdf6f0;
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

/* Headings */
h1 {
  text-align: center;
  font-size: 3rem;
  color: #ff6f61;
  margin-bottom: 20px;
}

h2 {
  color: #ff6f61;
  margin-bottom: 15px;
  text-align: center;
}

/* Form styles */
.form-container {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea, button {
  padding: 12px 15px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #ff6f61;
  outline: none;
  box-shadow: 0 0 5px rgba(255,111,97,0.4);
}

button {
  background-color: #ff6f61;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #e55b4e;
}

/* Search bar */
.search-container {
  text-align: center;
  margin-bottom: 25px;
}

#searchInput {
  width: 60%;
  padding: 12px 15px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: all 0.3s ease;
}

#searchInput:focus {
  border-color: #ff6f61;
  outline: none;
  box-shadow: 0 0 8px rgba(255,111,97,0.4);
}

/* Recipes Grid */
#recipesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Recipe Cards */
.recipe-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card-content {
  padding: 15px;
}

.recipe-card h3 {
  color: #ff6f61;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.recipe-card p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #555;
}

.recipe-card button {
  background-color: #ff6f61;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.recipe-card button:hover {
  background-color: #e55b4e;
}
