/* styles.css - レスポンシブでカラフル、SEOを意識した見た目 */
:root{
  --bg:#fff8f0;
  --card:#ffffff;
  --muted:#666;
  --accent:#ff6b6b;
  --btn-color-1:#ff9999;
  --btn-color-2:#ffd166;
  --btn-color-3:#06d6a0;
  --btn-color-4:#4dabf7;
  --btn-color-5:#c77dff;
  --btn-color-6:#ff8fab;
  --btn-color-7:#9be7ff;
  --btn-color-8:#b4f8c8;
  --title-grad:linear-gradient(90deg,#ff8fab,#ffd166,#6be7ff);
  --max-width:1080px;
  --shadow: 0 6px 18px rgba(30,30,30,0.08);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color:#222;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  display:flex;
  justify-content:center;
  padding:24px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  width:100%;
  max-width:var(--max-width);
  background:transparent;
}

/* Header */
.header{
  text-align:center;
  margin-bottom:18px;
}
.header h1{
  margin:0 0 12px 0;
  font-size:28px;
  line-height:1.1;
  background:var(--title-grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:800;
  letter-spacing:0.5px;
}

/* Veg buttons */
#veg-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin:8px 0 18px 0;
}
.veg-btn{
  border:0;
  padding:10px 14px;
  border-radius:999px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .12s ease;
}
.veg-btn:active{transform:scale(.98)}

/* Action bar */
.actions{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin:12px 0;
  flex-wrap:wrap;
}
.actions button, .actions .share{
  border:0;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:700;
}
.actions .icon{display:inline-block;margin-right:8px}

/* Recipe area */
#recipe-area{
  background:var(--card);
  border-radius:12px;
  padding:16px;
  box-shadow:var(--shadow);
  margin-bottom:16px;
}
.area-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.area-title{
  margin:0;
  font-size:18px;
  font-weight:800;
  background:linear-gradient(90deg,#06d6a0,#4dabf7,#c77dff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.search-wrap input{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #eee;
  min-width:220px;
}

/* grid */
.recipe-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:12px;
}
.recipe-card{
  padding:12px;
  border-radius:10px;
  background:linear-gradient(180deg, #fff, #fcfcff);
  border:1px solid rgba(0,0,0,0.03);
}
.recipe-title{margin:0 0 8px 0;font-size:16px}
.recipe-desc{margin:0 0 8px 0;color:var(--muted)}
.meta{margin:0;font-size:13px;color:#333}

/* notice */
#flash{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  background:#111;
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
}
#flash.visible{opacity:0.94}

/* footer links */
.footer{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.footer .links{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.footer a{color:#0b5cff;text-decoration:none;font-weight:700}

/* responsive behavior */
@media (max-width:720px){
  body{padding:12px}
  .area-header{flex-direction:column;align-items:flex-start}
  .search-wrap input{width:100%}
}

/* make layout fill full width when landscape on narrow screens */
@media (orientation:landscape) and (max-width:900px){
  .container{padding:0 8px; max-width:100%}
  body{padding:6px}
  #veg-buttons{justify-content:space-between}
  .veg-btn{flex:1;text-align:center}
}