@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Indie Flower", cursive;
}

body {
  background-color: rgb(234, 160, 212);
  color: #000;
  max-width: 100vw;
  min-height: 100vh;
}

header {
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(59, 5, 40);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-box input {
  padding: 8px;
  border-radius: 6px;
  border: none;
  width: 200px;
}

.search-box button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #3b82f6;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background-color: #2563eb;
}
.categories-nav {
  background-color: rgb(234, 160, 212); 
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categories li {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: #000;  
  color: #fff;              
  font-size: 0.95rem;
  transition: 0.3s;
}

.categories li:hover {
  background-color: #3b82f6;
}


.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.recipe {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.recipe:hover {
  transform: scale(1.03);
}

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

.recipe h2 {
  margin: 10px 0;
  font-size: 1.3rem;
  color: #111;
}

.recipe .time {
  font-size: 0.9rem;
  margin: 5px 0;
  color: #0d6efd;
  font-weight: bold;
}

.recipe ul, .recipe ol {
  margin: 10px 0;
  padding-left: 20px;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-box input {
    width: 100%;
  }

  .categories {
    justify-content: center;
  }

  .recipes {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
