:root {
  --yellow: #fff24d; --orange: #ff5b03; --bg: #0b0d12;
  --panel: rgba(0, 0, 0, 0.95); --line: rgba(0, 0, 0, 0.95);
  --text: rgba(255, 255, 255, .92); --muted: rgba(255, 255, 255, .70);
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: 
    radial-gradient(900px 420px at 10% -10%, rgba(255,242,77,.18), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(255,91,3,.14), transparent 55%),
    var(--bg);
  color: var(--text); font-family: "Manrope", sans-serif;
}
.hero-section {
  height: 30vh;
  background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80') center/cover;
  text-align: center;
}
.hero-overlay {
  background: rgba(0,0,0,0.4); height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero-section h1 { font-size: 3.5rem; margin: 0; letter-spacing: 4px; }
/* NAVIGATION & SEARCH */
.main-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 5%; background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(15px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
}
.nav-logo a { text-decoration: none; color: white; font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; }
.nav-logo span { color: var(--yellow); font-weight: 300; }
.nav-content { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.nav-links a:hover { color: var(--yellow); }

.search { position: relative; width: 250px; }
.search input {
  width: 100%; padding: 8px 15px 8px 35px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; color: white; outline: none;
}
.search-icon { position: absolute; left: 12px; top: 7px; opacity: 0.5; }

/* DROPDOWN RESULTS */
.search-results-dropdown {
    position: absolute; top: 115%; left: 0; width: 100%;
    background: rgba(11, 13, 18, 0.98); backdrop-filter: blur(15px);
    border: 1px solid var(--line); border-radius: 12px;
    max-height: 350px; overflow-y: auto; z-index: 1001; display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.search-item {
    display: flex; align-items: center; padding: 12px; gap: 12px;
    border-bottom: 1px solid var(--line); text-decoration: none; transition: 0.2s;
}
.search-item:hover { background: var(--panel); }
.search-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-item-info h4 { margin: 0; font-size: 14px; color: white; }
.search-item-info span { font-size: 11px; color: var(--muted); }

/* GRID & CARDS */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.recipe-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card-wrapper { position: relative; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: 0.3s; height: 100%; text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.card-img { height: 180px; background-size: cover; background-position: center; }
.card-body { padding: 20px; }
.tag { font-size: 10px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(255,242,77,0.1); color: var(--yellow); }
.meta { display: flex; justify-content: space-between; margin-top: 15px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* FAV & MODALS */
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(0,0,0,0.5); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }
.fav-btn.active { color: #ff4757; background: white; }
.filter-wrapper { display: flex; justify-content: center; gap: 10px; margin: 30px 0; flex-wrap: wrap; }
.filter-btn { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 8px 18px; border-radius: 20px; cursor: pointer; }
.filter-btn.active { background: var(--yellow); color: var(--bg); font-weight: bold; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.modal-content { background: var(--bg); border: 1px solid var(--line); margin: 10% auto; padding: 40px; width: 90%; max-width: 450px; border-radius: var(--radius); position: relative; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.contact-form input, .contact-form textarea { background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: 8px; color: white; font-family: inherit; }

@media (max-width: 768px) {
  .menu-toggle { display: block; border: none; background: none; color: white; font-size: 24px; cursor: pointer; }
  .nav-content { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg); flex-direction: column; padding: 20px; }
  .nav-content.active { display: flex; }
  .nav-links { flex-direction: column; gap: 15px; margin-bottom: 15px; }
  .search { width: 100%; }
}
.footer { padding: 30px 5%; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
body {
  margin: 0;
  min-height: 100vh;
  /* Dark base with layered gradients for depth */
  background-color: var(--bg);
  background-image: 
    /* Top-left soft yellow glow */
    radial-gradient(at 0% 0%, rgba(255, 242, 77, 0.15) 0px, transparent 50%),
    /* Bottom-right warm orange glow */
    radial-gradient(at 100% 100%, rgba(255, 91, 3, 0.1) 0px, transparent 50%),
    /* Center deep purple/blue mist for complexity */
    radial-gradient(at 50% 50%, rgba(40, 44, 52, 0.3) 0px, transparent 80%),
    /* Subtle grain texture overlay */
    url("https://www.transparenttextures.com/patterns/stardust.png");
  
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  background-attachment: fixed; /* Keeps background still while scrolling */
}