/* styles.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body, html {
    font-family: 'Fredoka', sans-serif;
    background-color: #ffe9f3;
    color: #333;
  }
  
  #header {
    background: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  #header-img {
    height: 2rem;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .nav-links li a:hover {
    color: #D77A61;
  }
  
  .section {
    padding: 4rem 2rem;
    /* max-width: 1200px; */
    margin: auto;
    text-align: center;
  }
  
  .headline {
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 3rem;
    color:beige;
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    /* color: #6C584C; */
  }
  #search{
    width: 100%;
    height: 400px;
    background-image: url(drinks.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color:beige;
  }
  
  
  #searchInput {
    padding: 0.75rem 1rem;
    width: 60%;
    max-width: 500px;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
  }
  /* Style the dropdown like the search bar */
#searchSelect.searchBox {
    padding: 0.75rem 1rem;
    width: 60%;
    max-width: 500px;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    text-transform: capitalize;
    appearance: none; /* removes default OS styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
  }
  #searchSelect.searchBox option {
    font-family: 'Gloria Hallelujah', cursive;
  }
  button {
    padding: 0.75rem 1.5rem;
    background-color: #D77A61;
    color: white;
    border: none;
    border-radius: 1.25rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover {
    background-color: #b95f4d;
  }
  
  /* #results {
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
   */
   #recipes{
    padding: 50px 0;
   }
   /* #recipe-section{
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    column-gap: 10px;
   } */
   #recipe-section {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, .9fr); /* force 3 per row */
    gap: 20px;
  }
   .recipe-card{
    background-color: #cca0b3;
    margin: 30px 10px;
    border-radius: 10px ;
    border: 6px /*solid*/ ;
    box-shadow: 0 5px 10px rgba(78,73,73,0.5),-5px -5px 10px rgba(34,34,34,0.4);
    padding: 10px;
    cursor: pointer;
    max-width:350px;

   }
   .recipe-card:hover {
    transform: translateY(-5px);
  }
  .recipe-card img{
    
    width:100%;
    max-width:300px;
    border-radius:10px;
  }
  .recipe-card h3{
    font-size: 24px;
    padding: 20px;
   }
   .recipe-card p{
    font-size: 18px;
    padding: 10px;
   }
   .recipe-card button{
    font-size: 18px;
    padding: 10px;
    margin: 10px auto;
   }
   /*.popup {
    display: none; /* <- important to hide popup initially */
    /* position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
  }
  
  .popup-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
  }
  
  #popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
   */
   /* Main Popup */
.popup {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  border-radius: 12px;
  
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease; /* Smooth fade in */
}

/* Popup Content Box */
.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  height: 70vh; /* fixed height for scrolling */
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  overflow-y: auto; /* enable vertical scroll */
  animation: popupZoom 0.4s ease;
}


/* Close Button "X" */
#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: red;
  background: none;
  border: none;
  cursor: pointer;
}

/* Text inside popup */
#popup-text {
  font-size: 20px;
  margin-top: 30px;
  line-height: 1.6;
}

/* FadeIn Animation */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Popup Zoom Animation */
@keyframes popupZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

  @media (max-width: 768px) {
    .nav-links {
      flex-direction: column;
      gap: 1rem;
    }
  
    .feature-card {
      flex-direction: column;
      align-items: center;
      text-align: center;
      min-height: auto;
    }
  
    .feature-img {
      height: 2.5rem;
      margin-bottom: 1rem;
    }
  
    .feature-text h3 {
      font-size: 1.2rem;
    }
  
    .feature-text p {
      font-size: 0.95rem;
    }
    #recipe-section {
      grid-template-columns: 1fr; /* one card per row on mobile */
    }
  }
