:root{
   --dark-bg: #121212;
   --primary-text: #fdfdfd;
   --body-font: 'Outfit', sans-serif;
   --heading-font: 'Playfair Display', serif;
   --bg-surface: #1e1e1e;
   --bg-surface-light: #2c2c2c;
   --text-secondary: #ffffff;
   --accent-orange: #f97316;
   --accent-orange-hover: #ea580c;
   --accent-green: #10b981;
   --border-subtle: #333333;
}
* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}
.navbar{
   position: absolute;
   top: 0;
   width: 100%;
   backdrop-filter: blur(9px);
   -webkit-backdrop-filter: blur(10px);
   border-radius: 20px;
   border: 1px solid rgba(113, 113, 113, 0.78);
   box-shadow: 0 8px 32px 0 rgba(0,0,0,0.5);
   padding: 1.5rem 2rem;
   z-index: 100;
}
.navlinks{
   display: flex;
   justify-content: space-between;
}
body{
   font-family: var(--body-font);
   background-color: var(--dark-bg);
   color: var(--primary-text);
   background-size: cover;
}
.logo {
   text-decoration: none;
   color: var(--primary-text);
   font-family: var(--heading-font);
   font-size: 1.5rem;
   font-weight: 600;
   letter-spacing: -0.5px;
}
.message {
   text-decoration: none;
   color: var(--primary-text);
   font-family: var(--heading-font);
   font-size: 1.5rem;
   font-weight: 600;
   letter-spacing: -0.5px;
}
.hero-section {
   position: relative;
   height: 100vh;
   min-height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   background: url('herobg.png') center/cover no-repeat;
}
.hero-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(to bottom, rgba(18,18,18,0.4), rgba(18,18,18,0.15));
   z-index: 1;
}
.hero-content {
   position: relative;
   z-index: 2;
   text-align: center;
   max-width: 800px;
   padding: 2rem;
}
.hero-title {
   font-family: var(--heading-font);
   font-size: 4rem;
   line-height: 1.1;
   margin-bottom: 1rem;
}
.hero-subtitle {
   font-size: 1.5rem;
   color: var(--text-secondary);
   margin-bottom: 1.5rem;
}
.search-container {
   display: flex;
   gap: 0.5rem;
   padding: 0.5rem;
   border-radius: 50px;
   border: 1px solid rgba(255,255,255,0.1);
   backdrop-filter: blur(10px);
}
#ingredient-input{
   flex: 1;
   background: transparent;
   border: none;
   padding: 0.8rem 1.5rem;
   color: var(--primary-text);
   font-size: 1.2rem;
   font-family: var(--body-font);
   outline: none;

}
#ingredient-input::placeholder{
   color: var(--primary-text);
}
#search-btn{
   background: var(--accent-orange);
   color: #fff;
   border: none;
   padding: 0.8rem 2rem;
   border-radius: 50px;
   font-size: 1.2rem;
   font-weight: 600;
   cursor: pointer;
   transition: background 0.2s, transform 0.2s;
   font-family: var(--font-body);
}
#search-btn:hover{
   background: var(--accent-orange-hover);
   transform: scale(1.02);

}
.error-msg {
   color: #ef4444;
   margin-top: 1rem;
   font-size: 0.9rem;
}
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 3rem 1.5rem;
   width: 100%;
}
.section-title {
   font-family: var(--font-heading);
   font-size: 2rem;
   margin-bottom: 2rem;
   text-align: center;
   position: relative;
}
.section-title::after {
   content: '';
   display: block;
   width: 60px;
   height: 3px;
   background: var(--accent-orange);
   margin: 0.5rem auto 0;
   border-radius: 2px;
}
.back-btn {
   background: transparent;
   color: var(--text-secondary);
   border: none;
   font-size: 1rem;
   cursor: pointer;
   margin-bottom: 2rem;
   padding: 0;
   display: inline-flex;
   align-items: center;
   transition: color 0.2s;
   font-family: inherit;
}
.back-btn:hover {
   color: var(--primary-text);
}
.recipe-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 2rem;
}
.recipe-card {
   background: var(--bg-surface);
   border-radius: 16px;
   overflow: hidden;
   transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
   cursor: pointer;
   border: 1px solid var(--border-subtle);
}
.recipe-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 12px 24px rgba(0,0,0,0.5);
   border-color: rgba(255,255,255,0.1);
}
.recipe-card-img {
   width: 100%;
   height: 220px;
   object-fit: cover;
   display: block;
}
.recipe-card-content {
   padding: 1.5rem;
}
.recipe-card-title {
   font-family: var(--font-heading);
   font-size: 1.25rem;
   margin-bottom: 0.5rem;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}
.recipe-card-meta {
   font-size: 0.85rem;
   color: var(--accent-orange);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
}
.hidden {
   display: none;
}
.site-footer {
   padding: 1rem 1rem;
   text-align: center;
   background-color: transparent;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   margin: 4rem auto 2rem;
   max-width: 600px;
   width: 100%;
   height: 50px;
}
.site-footer p {
   margin-bottom: 1rem;
   color: var(--text-secondary);
   font-family: var(--body-font);
   letter-spacing: 0.5px;
   font-size: 1rem;
}
.social-links {
   display: flex;
   justify-content: center;
   gap: 1.5rem;
}
.social-links a {
   color: var(--primary-text);
   font-size: 1.8rem;
   transition: color 0.3s, transform 0.3s;
}
.social-links a:hover {
   color: var(--accent-orange);
   transform: translateY(-3px);
}
@media (max-width: 730px) {
   .message {
      display: none;
   }
   .hero-title {
      font-size: 2.8rem;
   }
   .hero-subtitle {
      font-size: 1.1rem;
   }
   .hero-content {
      padding: 1rem;
      width: 100%;
   }
   .search-container {
      flex-direction: column;
      border-radius: 24px;
      gap: 0;
   }
   #ingredient-input {
      font-size: 1rem;
      padding: 1rem;
      text-align: center;
   }
   #search-btn {
      width: 100%;
      border-radius: 20px;
      padding: 0.8rem;
   }
}