:root{
  --bg:#0b0d10;
  --fg:#f2f4f8;
  --muted:#b5bdc9;
  --stroke:rgba(255,255,255,.12);
  --shadow:0 12px 40px rgba(0,0,0,.35);
  --radius:22px;
  --btn:#ff2b1c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--fg);
  background: radial-gradient(1200px 700px at 20% 10%, #1a2435 0%, transparent 55%),
              radial-gradient(900px 600px at 80% 35%, #1b1b2a 0%, transparent 55%),
              var(--bg);
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:28px 18px 36px;
}

.logo-wrap{
  display:flex;
  justify-content:center;
  margin:8px 0 14px;
}
.logo{
  max-width:520px;
  width:100%;
  height:auto;
  display:block;
}

.header{margin:10px 0 18px}
.brand{
  font-weight:800;
  font-size:52px;
  line-height:1.05;
  letter-spacing:-.02em;
}
.sub{
  margin-top:10px;
  color:var(--muted);
  font-size:20px;
  line-height:1.35;
  max-width:760px;
}

.grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin:20px 0 26px;
}

@media (min-width:720px){
  .grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}

/* Category buttons (picker) */
.cat{
  border-radius: var(--radius);
  padding:22px 22px;
  box-shadow: var(--shadow);
  cursor:pointer;
  user-select:none;
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:86px;
}
.cat .name{
  font-weight:900;
  font-size:22px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
  text-align:center;
}

/* Root homepage big button */
.picker-title{
  display:block;
  background: var(--btn);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:28px;
  padding:22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin:18px 0 10px;
}
.picker-title:active{transform: translateY(1px)}
.coming-soon{color:var(--muted); font-size:20px; margin:12px 0 0}

/* Tool tiles */
.tool-tile{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px 18px 16px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  text-decoration:none;
  color:var(--fg);
  min-height:150px;
}
.tool-tile:hover{border-color:rgba(255,255,255,.20)}
.tool-name{
  font-weight:900;
  font-size:22px;
}
.tool-desc{
  color:var(--muted);
  font-size:16px;
  line-height:1.35;
}
.is-disabled{
  opacity:.55;
  filter:saturate(.6);
  cursor:not-allowed;
}

/* Recipe view */
.topbar{
  border-radius: var(--radius);
  padding:14px 18px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  background:#2a2f3a;
  border:1px solid var(--stroke);
  margin:6px 0 14px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px 18px 16px;
}
.recipe-title{
  margin:8px 0 8px;
  font-size:26px;
  letter-spacing:-.01em;
}
.meta{color:var(--muted); margin-bottom:14px}
.section-title{
  margin-top:16px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#d7dbe3;
  font-size:14px;
}
.ingredients{margin:10px 0 0; padding-left:18px}
.ingredients li{margin:7px 0; color:#eef1f6}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 10px;
}
.btn{
  border:0;
  border-radius:999px;
  padding:12px 16px;
  font-weight:800;
  font-size:16px;
  background: var(--btn);
  color:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  cursor:pointer;
}
.btn-secondary{background: var(--btn);}
.btn:active{transform: translateY(1px)}
.hint{color:var(--muted); font-size:14px; margin-top:8px}

.footer{
  margin-top:22px;
  color:var(--muted);
  font-size:18px;
}
.footer a{
  color:var(--muted);
  text-decoration:underline;
}
/* Recipe buttons: white variant + better mobile wrapping */
.btn-white{
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Ensure the button row never overlaps on small screens */
.btn-row{
  align-items:stretch;
}

@media (max-width:520px){
  .btn{
    padding:11px 14px;
    font-size:15px;
  }
}
/* Make .actions behave like the standard button row (prevents overlap on mobile) */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 10px;
  align-items:stretch;
}

/* If some pages use different wrapper names, keep them consistent */
.btn-row{
  align-items:stretch;
}

@media (max-width:520px){
  .btn{
    padding:11px 14px;
    font-size:15px;
  }
}
