
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0a0a0a;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}


.header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(90deg, #12d4d4, #4E957D);
  color: white;
  border-radius: 0 0 12px 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}


.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}


form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
  gap: 10px;
}

#search-input {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #0ff;
  border-radius: 8px;
  width: 60%;
  min-width: 200px;
  background: #111;
  color: #0ff;
  outline: none;
  box-shadow: 0 0 8px rgba(0,255,255,0.5);
}

#search-input::placeholder {
  color: #888;
}

#search-btn, 
#suggest-btn {
  background-color: #111;
  color: #0ff;
  padding: 12px 20px;
  border: 2px solid #0ff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,255,255,0.4);
}

#search-btn:hover, 
#suggest-btn:hover {
  background-color: #0ff;
  color: #111;
  box-shadow: 0 0 20px rgba(0,255,255,0.8);
}


#results {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
}


.recipe {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  min-height: 360px; 
  animation: cardIn 380ms ease both;
}

.recipe:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}

.recipe img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s ease;
}

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

.recipe h2 {
  font-size: 18px;
  margin: 15px 15px 8px;
  color: #cfeff0;
  
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recipe .meta {
  margin: 0 15px 10px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  color: #d9d9d9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.recipe a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff4da6, #ff0077);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  margin: auto 15px 0; 
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow:
    0 6px 16px rgba(255, 0, 119, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255, 0, 119, 0.35);
  position: relative;
  overflow: hidden;
}

.recipe a::after {
  content: "→";
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.recipe a:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(255, 0, 119, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #ff5bb0, #ff1a88);
}

.recipe a:hover::after {
  transform: translateX(3px);
}

.recipe a:active {
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(255, 0, 119, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.recipe a:focus-visible {
  outline: 2px solid #ff80c1;
  outline-offset: 2px;
}


#load-more-btn {
  display: block;
  margin: 30px auto 60px;
  background: linear-gradient(135deg, #2bd0cf, #4E957D);
  color: #0b1515;
  padding: 12px 25px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

#load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}


.footer {
  text-align: center;
  padding: 25px;
  background: #111;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.3);
}

.footer p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #bbb;
}

.footer #source-code-btn {
  background: transparent;
  color: #cfeff0;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.footer #source-code-btn:hover {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
