/* Cooks by Day — modern static site UI
   No frameworks. Designed for Netlify deploy.
*/

:root{
  --bg: #0b0f19;
  --bg2:#0a1225;
  --card:#111827;
  --card2:#0f172a;
  --text:#e5e7eb;
  --muted:#a6adbb;
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --shadow2: 0 10px 25px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
  --max: 1120px;

  --brandA:#7c3aed;
  --brandB:#22d3ee;
  --brandC:#a3e635;

  --focus: 0 0 0 4px rgba(34,211,238,.35);
}

[data-theme="light"]{
  --bg:#f7fafc;
  --bg2:#eef2ff;
  --card:#ffffff;
  --card2:#ffffff;
  --text:#0b1220;
  --muted:#556070;
  --line: rgba(0,0,0,.08);
  --shadow: 0 18px 55px rgba(12,18,32,.12);
  --shadow2: 0 10px 25px rgba(12,18,32,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 15% 10%, rgba(124,58,237,.25), transparent 60%),
              radial-gradient(900px 700px at 80% 0%, rgba(34,211,238,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2) 70%, var(--bg));
  min-height:100vh;
}

a{color:inherit; text-decoration:none}
button, input, select{font:inherit; color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip{
  position:absolute; left:-999px; top:12px;
  background:var(--card); border:1px solid var(--line);
  padding:10px 12px; border-radius:12px; box-shadow:var(--shadow2);
}
.skip:focus{left:12px; outline:none; box-shadow:var(--focus), var(--shadow2)}

.bg-orbs{position:fixed; inset:0; pointer-events:none; z-index:-1; overflow:hidden}
.orb{position:absolute; filter: blur(40px); opacity:.9; mix-blend-mode:screen}
.orb--1{width:520px; height:520px; left:-140px; top:120px; background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.95), transparent 60%)}
.orb--2{width:520px; height:520px; right:-210px; top:-80px; background: radial-gradient(circle at 40% 40%, rgba(34,211,238,.85), transparent 60%)}
.orb--3{width:460px; height:460px; right:18%; bottom:-240px; background: radial-gradient(circle at 50% 50%, rgba(163,230,53,.55), transparent 65%)}

.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(12px);
  background: rgba(10,14,25,.55);
  border-bottom:1px solid var(--line);
}
[data-theme="light"] .header{ background: rgba(255,255,255,.60); }

.header__inner{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.02em}
.brand__mark{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.18));
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
}
.brand__name{font-size:15px}
.brand--small .brand__mark{width:34px; height:34px}
.brand--small .brand__name{font-size:14px}

.nav{margin-left:auto; display:flex; gap:18px; align-items:center}
.nav__link{
  font-weight:600; font-size:14px; color:var(--muted);
  padding:10px 10px; border-radius:12px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.nav__link:hover{color:var(--text); background: rgba(255,255,255,.06); transform: translateY(-1px)}
.nav__cta{
  color:var(--text);
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.20));
  border:1px solid var(--line);
}

.iconbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius:14px;
  width:42px; height:42px;
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.iconbtn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.iconbtn:focus{outline:none; box-shadow: var(--focus)}

.header__menu{display:none; margin-left:auto}
.mobile{border-top:1px solid var(--line); background: rgba(10,14,25,.55)}
[data-theme="light"] .mobile{ background: rgba(255,255,255,.60); }
.mobile__inner{padding:10px 0; display:flex; flex-direction:column; gap:8px}
.mobile__link{
  padding:12px 12px; border-radius:14px;
  color:var(--muted); font-weight:700;
}
.mobile__link:hover{background: rgba(255,255,255,.07); color:var(--text)}
.mobile__cta{color:var(--text); background: rgba(124,58,237,.18); border:1px solid var(--line)}

.hero{padding:54px 0 28px}
.hero__inner{display:grid; grid-template-columns: 1.12fr .88fr; gap:26px; align-items:stretch}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  width:fit-content;
}
.hero__title{
  margin:14px 0 10px;
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing:-.04em;
  line-height:1.03;
}
.grad{
  background: linear-gradient(90deg, var(--brandA), var(--brandB), var(--brandC));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__subtitle{color:var(--muted); font-size:16px; line-height:1.7; max-width:56ch}

.hero__actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  font-weight:800;
  letter-spacing:-.01em;
  cursor:pointer;
  display:inline-flex;
  align-items:center; gap:10px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn:focus{outline:none; box-shadow: var(--focus), var(--shadow2)}
.btn--primary{
  background: linear-gradient(135deg, rgba(124,58,237,.85), rgba(34,211,238,.55));
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--shadow2);
}
.btn--ghost{background: rgba(255,255,255,.03)}
.btn--sm{padding:10px 12px; border-radius:12px; font-weight:800}
.btn__icon{opacity:.95}

.hero__meta{display:flex; gap:18px; margin-top:18px; flex-wrap:wrap}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px 14px;
  min-width:120px;
}
.stat__k{font-size:18px; font-weight:900; letter-spacing:-.02em}
.stat__v{color:var(--muted); font-weight:700; margin-top:2px; font-size:13px}

.hero__card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.featured{padding:18px 18px 16px}
.featured__top{display:flex; align-items:center; justify-content:space-between}
.featured__tag{
  font-weight:900; font-size:12px;
  padding:8px 10px; border-radius:999px;
  background: rgba(163,230,53,.12);
  border:1px solid rgba(163,230,53,.18);
  color: var(--text);
}
.featured__fav{
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
}
[data-theme="light"] .featured__fav{color: rgba(11,18,32,.8)}
.featured__title{margin:14px 0 8px; font-size:22px; letter-spacing:-.02em}
.featured__desc{margin:0 0 14px; color:var(--muted); line-height:1.6}
.featured__chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding:8px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  color: var(--muted);
}
.chip strong{color:var(--text)}
.featured__actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}

.section{padding:30px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 32%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:14px;
}
.section__title{margin:0; font-size:26px; letter-spacing:-.03em}
.section__subtitle{margin:6px 0 0; color:var(--muted); line-height:1.7; max-width:70ch}

.toolbar{display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap}
.field{display:flex; flex-direction:column; gap:6px}
.label{font-size:12px; font-weight:900; color:var(--muted); letter-spacing:.02em; text-transform:uppercase}
.inputwrap{position:relative}
.input, .select{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  min-width: 230px;
  outline:none;
  transition: box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.select{min-width: 150px}
.input::placeholder{color: rgba(166,173,187,.8)}
.input:focus, .select:focus{box-shadow: var(--focus); background: rgba(255,255,255,.06)}
.inputicon{
  position:absolute; right:10px; top:50%; transform: translateY(-50%);
  font-size:12px; color: rgba(166,173,187,.8);
  border:1px solid var(--line);
  padding:6px 8px; border-radius:10px;
  background: rgba(255,255,255,.03);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:12px;
}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
  transform: translateY(0);
  transition: transform .18s ease, background .18s ease;
}
.card:hover{transform: translateY(-2px); background: rgba(255,255,255,.06)}
.card__inner{padding:16px}
.card__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.badge{
  font-weight:900; font-size:11px;
  padding:7px 9px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(124,58,237,.12);
}
.badge--green{background: rgba(163,230,53,.12)}
.badge--blue{background: rgba(34,211,238,.10)}
.kebab{
  width:36px; height:36px; display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.kebab:focus{outline:none; box-shadow: var(--focus)}
.card__title{margin:12px 0 6px; font-size:18px; letter-spacing:-.02em}
.card__desc{margin:0; color:var(--muted); line-height:1.6; min-height: 3.2em}
.card__chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.card__foot{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--line);
  padding:12px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.00));
}
.meta{display:flex; gap:10px; color:var(--muted); font-weight:800; font-size:12px}
.meta span{display:inline-flex; gap:6px; align-items:center}
.card__actions{display:flex; gap:10px}
.smallbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.smallbtn:hover{background: rgba(255,255,255,.08)}
.smallbtn:focus{outline:none; box-shadow: var(--focus)}

.empty{
  border:1px dashed var(--line);
  border-radius: var(--radius);
  padding:28px;
  background: rgba(255,255,255,.03);
  margin-top:14px;
  text-align:center;
}
.empty__icon{font-size:34px}
.empty__title{margin:8px 0 4px}
.empty__subtitle{margin:0 0 12px; color:var(--muted); line-height:1.6}

.planner{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:10px;
  margin-top:12px;
}
.day{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius2);
  padding:12px 12px 10px;
  min-height: 120px;
}
.day__name{font-weight:1000; letter-spacing:-.02em}
.day__meal{color:var(--muted); margin-top:10px; line-height:1.5; font-weight:700}
.day__meal strong{color:var(--text)}
.day__btns{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap}
.mini{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:12px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.mini:hover{background: rgba(255,255,255,.08)}
.mini:focus{outline:none; box-shadow: var(--focus)}

.planner__actions{display:flex; gap:10px; flex-wrap:wrap}

.shopping{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.shopping__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.shopping__title{margin:0}
.shopping__subtitle{margin:0; color:var(--muted); padding:0 16px 12px; line-height:1.6}
.shopping__box{
  margin:0 16px 16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  border-radius: 14px;
  padding:14px;
  overflow:auto;
  white-space:pre-wrap;
}
[data-theme="light"] .shopping__box{background: rgba(12,18,32,.05)}
.shopping__actions{display:flex; gap:10px; padding:0 16px 16px; flex-wrap:wrap}

.about{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
.about__card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
  padding:18px;
}
.about__card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.about__title{margin:0}
.about__subtitle{margin:8px 0 14px; color:var(--muted); line-height:1.7}
.features{list-style:none; padding:0; margin:14px 0 0; display:grid; gap:12px}
.features__item{display:flex; gap:12px; align-items:flex-start}
.features__icon{font-size:20px}
.features__title{font-weight:1000}
.features__desc{color:var(--muted); margin-top:4px; line-height:1.6}

.form{margin-top:10px}
.form__row{display:flex; gap:10px; align-items:center}
.form__hint{margin:10px 0 0; color:var(--muted); font-size:13px}

.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background: rgba(0,0,0,.08);
}
[data-theme="light"] .footer{background: rgba(255,255,255,.55)}
.footer__inner{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap}
.footer__copy{color:var(--muted); margin:10px 0 0; line-height:1.6; max-width:52ch}
.footer__right{display:flex; gap:14px; flex-wrap:wrap}
.footer__link{color:var(--muted); font-weight:800}
.footer__link:hover{color:var(--text)}

.modal{position:fixed; inset:0; z-index:20}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px)}
.modal__panel{
  position:relative;
  margin: 6vh auto 0;
  width: min(920px, calc(100% - 24px));
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(17,24,39,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  animation: pop .18s ease both;
}
[data-theme="light"] .modal__panel{background: rgba(255,255,255,.92)}
@keyframes pop{from{transform: translateY(8px) scale(.98); opacity:.8} to{transform:none; opacity:1}}
.modal__head{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:16px; border-bottom:1px solid var(--line)}
.modal__eyebrow{color:var(--muted); font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.04em}
.modal__title{margin:6px 0 0; letter-spacing:-.02em}
.modal__body{padding:16px}
.modal__chips{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px}
.modal__cols{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.modal__h{margin:0 0 10px; letter-spacing:-.01em}
.list{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}
.list--ordered{padding-left:20px}
.modal__foot{display:flex; justify-content:flex-end; gap:10px; padding:14px 16px; border-top:1px solid var(--line); background: rgba(255,255,255,.03)}

@media (max-width: 980px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  .hero__inner{grid-template-columns: 1fr}
  .about{grid-template-columns: 1fr}
}
@media (max-width: 720px){
  .nav{display:none}
  .header__menu{display:grid}
  .planner{grid-template-columns: repeat(2, 1fr)}
  .input, .select{min-width: 180px}
  .modal__cols{grid-template-columns: 1fr}
}
