:root{
  --bg:#0b0f14;--card:rgba(255,255,255,.06);--card-border:rgba(255,255,255,.12);
  --text:#e8eef6;--muted:#aab8c5;--brand:#7c5cff;--brand-2:#00d4ff;--accent:#57ffa9;
  --danger:#ff6b6b;--shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;font-family:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  color:var(--text);background:var(--bg);
}

.bg{position:fixed;inset:0;pointer-events:none;filter:blur(0px);opacity:0.9;
  background:url('Food.jpg') center/cover no-repeat;
}
.bg::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.32));
}
.container{width:min(100%,1000px);margin:0 auto;padding:24px}

header{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center;margin:0 auto}
.brand .logo{font-size:28px}
h1{font-size:22px;margin:0;color:#eaf2ff;text-shadow:0 6px 22px rgba(124,92,255,.35)}
@media (min-width: 900px){ h1{font-size:34px} }

.theme-toggle{cursor:pointer;user-select:none;opacity:.8;transition:opacity .2s}
.theme-toggle:hover{opacity:1}

.glass{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border:1px solid var(--card-border);border-radius:16px;box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

.hero{padding:28px;margin-top:8px}
.hero h2{margin:0 0 8px;font-size:28px}
.hero p{margin:0 0 18px;color:var(--muted);font-size:18px}

.form{display:flex;flex-direction:column;gap:12px}
.label{font-weight:600}
.input-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:start}
.field-stack{display:flex;flex-direction:column;gap:10px}
.cta-col{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.cta-row{display:flex;gap:10px}
.input{
  flex:1;min-width:260px;padding:14px 16px;background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);border-radius:12px;color:var(--text);
  outline:none;transition:border .2s,box-shadow .2s
}
.input::placeholder{color:#cbd5e1}
.input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(124,92,255,.15)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}

.btn{
  padding:14px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  color:#0b0f14;background:linear-gradient(135deg,var(--brand),var(--brand-2));
  font-weight:700;cursor:pointer;transition:transform .06s ease,filter .2s;white-space:nowrap
}
.btn.primary{background:linear-gradient(135deg,#5b8cff,#8a5bff);color:white;border:1px solid rgba(255,255,255,.24);box-shadow:0 10px 24px rgba(91,140,255,.25)}
.btn.primary:hover{filter:brightness(1.07)}
.btn.primary:active{transform:translateY(1px)}
.btn.danger{background:linear-gradient(135deg,#ff7a7a,#ff5252);color:white;border:1px solid rgba(255,255,255,.24)}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;color:var(--text)}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn.fancy{
  position:relative;overflow:hidden;color:#0b0f14;background:transparent;border:1px solid rgba(255,255,255,.22);
}
.btn.fancy::before{
  content:'';position:absolute;inset:-2px;border-radius:12px;
  background:conic-gradient(from 180deg at 50% 50%,#7c5cff, #00d4ff, #57ffa9, #7c5cff);
  filter:blur(16px);opacity:.6;z-index:-1;
}
.btn.fancy::after{
  content:'';position:absolute;inset:0;border-radius:12px;
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
}
.btn.fancy:hover::before{opacity:.9;filter:blur(12px)}
.chips-input{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip{display:inline-flex;gap:6px;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);font-size:14px}
.chip button{background:transparent;border:none;color:var(--text);cursor:pointer;opacity:.8}
.chip button:hover{opacity:1}
/* suggestions removed */

.advanced{margin-top:4px;color:var(--muted)}
.advanced summary{cursor:pointer}
.advanced input{margin-top:8px;width:100%}

.status{min-height:28px;margin-top:8px;color:var(--muted)}

.result{margin-top:20px;padding:22px}
.result-header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}
.result-actions{display:flex;gap:8px;flex-wrap:wrap}
.result h3{margin:0}
.recipe{line-height:1.65}

/* New responsive grid for recipe details */
.recipe-grid{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start}
@media (max-width: 820px){
  .recipe-grid{grid-template-columns:1fr}
}
.panel{background:rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:16px}
.panel h4{margin:0 0 10px}
.panel ul{padding-left:18px;margin:0}
.panel li+li{margin-top:6px}
.panel.steps{background:rgba(0,0,0,.18)}
.panel.tips{margin-top:18px}

/* Image section */
.image-section{margin-top:0;margin-bottom:14px}
.image-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.image-section img{width:100%;max-height:420px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.08)}
.hidden{display:none}

.spinner{display:inline-flex;gap:6px;align-items:center}
.spinner span{width:8px;height:8px;border-radius:999px;background:var(--brand);
  animation:bounce .9s infinite ease-in-out}
.spinner span:nth-child(2){animation-delay:.15s}
.spinner span:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}

.footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}
/* Sticky actions */
.sticky-actions{position:sticky;top:10px;z-index:2}

/* Skeleton removed per request */

@media (prefers-color-scheme: light){
  :root{--bg:#f6f8fb;--text:#0b0f14;--muted:#617487;--card:rgba(255,255,255,.65);--card-border:rgba(0,0,0,.08)}
  .input{background:rgba(255,255,255,.85);color:#0b0f14}
}

/* Cocktail suggestion */
.cocktail{display:flex;gap:14px;align-items:flex-start}
.cocktail img{width:120px;height:120px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.12)}
.cocktail-info h5{margin:0 0 6px;font-size:18px}
.muted{color:var(--muted)}


