/* =========================
FILE: /media/spin2meal/soup/soup-spin.css 20260213-FINAL-CLEAN
- Deep wood / herbal theme
- Gawai top-right always visible (no crop) + larger
- Two main buttons: warm gold/orange + 3D
========================= */

:root{
  /* 深木色 / 藥材色 */
  --bg:#120c08;
  --bg2:#2a1a12;
  --panel:rgba(42,26,18,.70);
  --line:rgba(255,255,255,.10);
  --text:#ffffff;
  --muted:#d7c8b7;
  --accent:#c29059;

  /* buttons */
  --gold1:#ffd57a;
  --gold2:#f2a51a;
  --gold3:#c98712;

  --r:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(194,144,89,.20), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(90,55,30,.22), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color:var(--text);
}
a{color:inherit;text-decoration:none}
.accent{color:var(--accent)}
.shell{max-width:1100px;margin:0 auto;padding:14px 14px 30px}

/* =========================
   HEADER (Top section)
========================= */
.header{margin-bottom:10px}
.toprow{
  position:relative;
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:nowrap;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:14px;
}

.left{flex:1;min-width:280px}
.right{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}

/* ✅ Gawai: always full image (no crop) + larger */
.right .happy{
  width:160px;              /* desktop bigger */
  aspect-ratio:1/1;
  height:auto;
  object-fit:contain;        /* ✅ 不裁切 */
  background:rgba(255,255,255,.06);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  display:block;
}

.brandline{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background:var(--accent);
  display:inline-block;
  box-shadow:0 0 14px rgba(194,144,89,.45)
}
.since{color:#b9a28e;font-size:12px}
.title{margin:10px 0 8px;font-size:34px;letter-spacing:.4px}

/* =========================
   BUTTONS (Warm gold + 3D)
========================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}

.btn.primary,
.btn.big,
.promo-share-btn{
  background:linear-gradient(180deg, var(--gold1) 0%, var(--gold2) 55%, var(--gold3) 100%);
  border-color:rgba(255,255,255,.16);
  color:#2b1408; /* 金色底用深字更清晰 */
  text-shadow:0 1px 0 rgba(255,255,255,.25);
  box-shadow:
    0 10px 22px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -2px 0 rgba(0,0,0,.18);
}

.btn.primary:active,
.btn.big:active,
.promo-share-btn:active{
  transform:translateY(1px);
  box-shadow:
    0 6px 14px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(0,0,0,.14);
}

.btn.small{padding:10px 12px;font-size:13px}
.btn.big{width:100%}
.btn.tiny{padding:9px 12px;font-size:13px;background:rgba(255,255,255,.05)}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 10px}

.hint{margin-top:8px;color:var(--muted);line-height:1.55}

/* =========================
   FILTER (if you still use it)
========================= */
.filterbar{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.fItem{display:flex;gap:8px;align-items:center}
.fLabel{color:var(--muted);font-weight:800}
select{
  appearance:auto;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:#fff;
  font-weight:800;
}
/* ===== Fix select option unreadable text ===== */
select option{
  color:#2b1a10;              /* 深木啡字 */
  background:#efe6da;         /* 淡藥材米色底 */
  font-weight:700;
}

/* 被選中 / hover（部分瀏覽器支援） */
select option:checked,
select option:hover{
  background:#e1c9a6;
  color:#1b1009;
}
.filterhelp{
  margin-top:8px;
  color:rgba(255,255,255,.80);
  font-size:13px;
  line-height:1.45;
}

/* =========================
   LAYOUT
========================= */
.layout{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}
@media (max-width:920px){ .layout{grid-template-columns:1fr} }

.main,.aside{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:14px;
}

/* =========================
   2x2 Grid
========================= */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}

.card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--r);
  overflow:hidden;
  background:rgba(255,255,255,.03);
  position:relative;
}

.keep{
  position:absolute;top:10px;right:10px;z-index:3;
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:#fff;font-weight:900;cursor:pointer;
}

.imgwrap{position:relative;aspect-ratio:1/1;background:rgba(0,0,0,.18)}
.ph{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-weight:900;
}
.img{width:100%;height:100%;object-fit:cover;display:block}

.meta{padding:10px 12px}
.badges{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}

.badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;
  background:rgba(194,144,89,.14);
  border:1px solid rgba(194,144,89,.28);
  color:#ffe7cf;font-size:13px;font-weight:900;
}
.tag{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;font-size:13px;font-weight:900;
}

.name{font-size:16px;font-weight:900;line-height:1.25;min-height:40px}

/* 查看食譜：放 # 後面 + 字細 */
.go{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 10px;border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:900;
}
.go.mini{
  padding:6px 9px;
  font-size:12px;
  border-radius:10px;
  opacity:.95;
}

.bottom{margin-top:12px}

/* =========================
   ASIDE
========================= */
.asideHead{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.asideTitle{font-weight:900}
.k{font-weight:900}

.result{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.result li{
  display:grid;grid-template-columns:56px 1fr auto;
  gap:10px;align-items:center;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px;
  background:rgba(255,255,255,.03);
}
.result img{width:56px;height:56px;object-fit:cover;border-radius:12px;display:block}

.source{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.65}
.promo-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.promo-share-btn{
  padding:12px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  cursor:pointer;font-weight:900;
}
.promo-back{
  padding:12px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, #d39a3b 0%, #b07a22 100%);
  font-weight:900;color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.32);
}
.promo-share-hint{text-align:center;margin-top:10px;color:#f1d8bf}

/* utility */
.isHidden{display:none !important}

/* =========================
   MOBILE: keep 2x2 visible + make Gawai bigger
========================= */
@media (max-width:768px){
  .shell{padding:12px 12px 26px}
  .toprow{padding:12px}

  /* ✅ 右上固定，並預留右側空間避免撞位 */
  .right{
    position:absolute;
    top:12px;
    right:12px;
  }
  .right .happy{width:140px;}     /* mobile bigger (as you want) */
  .left{padding-right:156px;}

  .title{font-size:30px}
}

@media (max-width:380px){
  .right .happy{width:120px;}
  .left{padding-right:132px;}
}
/* ===== Spin@Soup Filter Toggle ===== */
.filter-body{ display:block; }

@media (max-width:768px){
  .filter-body{ display:none; }
  .filter-wrap.open .filter-body{ display:block; }
}
.note-historical{
  margin-top:8px;
  font-size:12px;
  line-height:1.5;
  color:rgba(255,255,255,.78);
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(0,0,0,.18);
}
