/* Mock-ups of the WBuch app (lib/src/web/widgets/app_mockups.dart).
   Always drawn in the app's light palette — they are "screens", so they stay
   light even when the dictionary is in dark mode. */

.am-phone, .am-card, .am-notif, .am-browser, .am-toast {
  --am-paper: #FBF7E8; --am-paper-deep: #F2ECD6; --am-paper-soft: #FEFCF2;
  --am-ink: #1C1A14; --am-ink2: #3A352A; --am-ink3: #6A6353; --am-ink-dim: #A69D85;
  --am-rule: #CDC4A9; --am-rule-soft: #D9D1B6;
  --am-red: #A52828; --am-red-deep: #8A1F1F;
  --am-green: #2F7A4D; --am-green-soft: #CFE1CF; --am-green-rule: #9EC3A8; --am-green-bg: #E1E6CC;
  --am-no-bg: #F2DAD2; --am-no-rule: #D9A89C;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--am-ink);
  box-sizing: border-box;
  text-align: left;
}
.am-phone *, .am-card *, .am-notif *, .am-browser *, .am-toast * { box-sizing: border-box; }
.am-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.am-phone svg, .am-browser svg, .am-toast svg { fill: none; stroke: currentColor; stroke-width: 2; }
.am-phone svg .am-fill, .am-browser svg .am-fill { fill: currentColor; stroke: none; }
.am-phone svg.am-solid { fill: currentColor; stroke: none; }
.g-der { color: #2563EB; } .g-die { color: #DC2626; } .g-das { color: #16A34A; }
.am-card i, .am-browser i.g-der, .am-browser i.g-die, .am-browser i.g-das { font-style: italic; }

/* ---- phone ------------------------------------------------------------- */
.am-phone {
  width: 300px; height: 620px; padding: 10px; border-radius: 46px;
  background: var(--am-ink); box-shadow: 0 30px 60px rgba(28,26,20,.22);
}
.am-screen {
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--am-paper); padding: 26px 14px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.am-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--am-ink2); }
.am-streak { font-size: 9px; padding: 4px 8px; border: 1px solid var(--am-rule); border-radius: 8px; background: var(--am-paper-deep); color: var(--am-ink); }
.am-review {
  height: 40px; border-radius: 10px; border: 1px solid var(--am-green-rule); background: var(--am-green-bg);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600;
}
.am-review svg { width: 16px; height: 16px; color: var(--am-green); }
.am-sched-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.am-sched-head > span:first-child { font-size: 24px; }
.am-sched-head .am-mono { font-size: 10px; color: var(--am-ink3); }
.am-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--am-rule); border-radius: 999px; overflow: hidden; }
.am-seg span { font-size: 9px; text-align: center; padding: 7px 2px; color: var(--am-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-seg span.on { background: var(--am-green-soft); color: var(--am-green); }
.am-block {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: var(--am-paper-soft); border: 1px solid var(--am-rule-soft);
}
.am-block.best { border: 1.5px solid var(--am-red); }
.am-time {
  flex-shrink: 0; width: 50px; height: 40px; border-radius: 8px; background: var(--am-paper-deep);
  border: 1px solid var(--am-rule-soft); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.am-block-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.am-best { font-size: 8px; color: var(--am-red); letter-spacing: .06em; }
.am-block-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-block-meta { font-size: 9px; color: var(--am-ink3); }
.am-block > svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--am-red); }
.am-tabs {
  margin: auto -14px 0; height: 58px; border-top: 1px solid var(--am-rule-soft);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
}
.am-tabs span { font-size: 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.am-tabs svg { width: 14px; height: 14px; }
.am-tabs i { padding: 3px 14px; border-radius: 999px; background: var(--am-green-soft); display: flex; }

/* ---- review card ------------------------------------------------------- */
.am-card {
  width: 250px; padding: 14px; border-radius: 14px; background: var(--am-paper-soft);
  border: 1px solid var(--am-rule); box-shadow: 0 24px 48px rgba(28,26,20,.18);
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
.am-card img { width: 100%; height: 124px; object-fit: cover; border-radius: 8px; display: block; }
.am-gloss { font-size: 17px; color: var(--am-red); line-height: 1.2; text-align: center; }
.am-word { font-size: 28px; line-height: 1; }
.am-plural { font-size: 13px; color: var(--am-green); font-style: italic; }
.am-example { font-size: 13px; font-style: italic; color: var(--am-ink2); text-align: center; }
.am-answers { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.am-answers span { font-size: 10px; text-align: center; padding: 9px 2px; border-radius: 6px; }
.am-answers .no { background: var(--am-no-bg); border: 1px solid var(--am-no-rule); color: var(--am-red-deep); }
.am-answers .yes { background: var(--am-green-bg); border: 1px solid var(--am-green-rule); color: var(--am-green); }

/* ---- notification ------------------------------------------------------ */
.am-notif {
  width: 230px; padding: 12px 14px; border-radius: 14px; background: var(--am-ink); color: var(--am-paper);
  display: flex; gap: 10px; align-items: center; box-shadow: 0 18px 36px rgba(28,26,20,.25);
}
.am-notif img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.am-notif > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.am-notif-meta { font-size: 10px; color: var(--am-ink-dim); }
.am-notif-text { font-size: 14px; font-weight: 600; }

/* ---- browser window with a review card ---------------------------------- */
.am-browser {
  width: 244px; border-radius: 10px; background: var(--am-paper); border: 1px solid #b8ae9c;
  overflow: hidden; box-shadow: 0 22px 44px rgba(28,26,20,.18);
}
.am-browser-bar { height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 9px; background: var(--am-paper-deep); border-bottom: 1px solid var(--am-rule-soft); }
.am-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #C44A3A; }
.am-browser-bar i:nth-child(2) { background: #E7B43C; }
.am-browser-bar i:nth-child(3) { background: var(--am-green-rule); }
.am-browser-bar span { flex-grow: 1; margin-left: 8px; height: 14px; border-radius: 4px; background: var(--am-paper-soft); font-size: 8px; color: var(--am-ink3); display: flex; align-items: center; padding-left: 6px; }
.am-browser-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.am-rev-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.am-rev-head .am-mono { font-size: 8px; color: var(--am-ink3); }
.am-progress { height: 3px; border-radius: 2px; background: #E7E1CD; }
.am-progress i { display: block; width: 12%; height: 3px; border-radius: 2px; background: var(--am-ink); }
.am-rev-card { padding: 14px 12px; border-radius: 10px; background: var(--am-paper-soft); border: 1px solid var(--am-rule); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.am-rev-card .am-gloss { font-size: 14px; }
.am-rev-word { display: flex; align-items: center; gap: 6px; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.am-rev-word svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--am-red); }
.am-rev-card .am-plural { font-size: 11px; }
.am-pos { font-size: 8px; color: var(--am-ink3); }
.am-rev-card .am-example { font-size: 11px; margin-top: 2px; }
.am-browser .am-answers span { font-size: 8px; padding: 8px 2px; border-radius: 5px; }
.am-toast {
  padding: 10px 14px 10px 10px; border-radius: 12px; background: var(--am-ink); color: var(--am-paper);
  display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 28px rgba(28,26,20,.28);
}
.am-check { width: 24px; height: 24px; border-radius: 50%; background: var(--am-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.am-check svg { width: 12px; height: 12px; stroke-width: 3; }
.am-toast > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.am-toast-text { font-size: 13px; font-weight: 600; }
.am-toast-sub { font-size: 8px; color: var(--am-ink-dim); }
