/* Widget catalog — iOS-sized mocks. Tokens come from the page @theme. */

.w-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 22rem);
  margin-inline: auto;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(23, 242, 140, 0.08), transparent 55%),
    #19191a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.w {
  --w-radius: 22px;
  position: relative;
  overflow: hidden;
  border-radius: var(--w-radius);
  background: #0e0e10;
  color: #eeece9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.w-s { aspect-ratio: 1; min-height: 0; }
.w-m { grid-column: 1 / -1; aspect-ratio: 338 / 155; }
.w-l { grid-column: 1 / -1; aspect-ratio: 338 / 354; }

.w-pad { padding: 14px 16px; height: 100%; display: flex; flex-direction: column; }
.w-num {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  font-family: ui-rounded, "Nunito", "Plus Jakarta Sans", sans-serif;
}
.w-cap { font-size: 11px; color: #807b76; }
.w-muted { font-size: 10px; color: #807b76; }
.w-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.w-bar > i {
  display: block;
  height: 100%;
  width: var(--fill, 58%);
  border-radius: inherit;
  background: #17F28C;
}
.w-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.w-hero {
  background: #f5f3f0;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  flex: 1;
  min-height: 0;
}
.w-macros-full { background: #f5f3f0; }
.w-macros-full .w-pad { padding: 12px; }

.ring { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ring svg { width: var(--ring, 26px); height: var(--ring, 26px); display: block; }
.ring .g { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.ring .t { font-size: 8px; color: #636363; }
.ring .l { font-size: 8px; font-weight: 600; color: #4a4a4a; white-space: nowrap; }

.ql { display: grid; gap: 6px; height: 100%; }
.ql-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ql-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ql-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 0;
}
.ql-tile svg { width: 20px; height: 20px; }
.ql-tile span { font-size: 11px; font-weight: 600; color: #9e9a95; }

.w-streak { align-items: center; justify-content: center; text-align: center; gap: 2px; }
.w-streak .w-num { font-size: 40px; }

.w-weight { flex-direction: row; gap: 14px; align-items: stretch; }
.w-weight .col { width: 6.2rem; display: flex; flex-direction: column; }
.w-weight svg { flex: 1; min-width: 0; }

.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 0;
}
.meal-row + .meal-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.meal-row .kcal { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.meal-row .empty { color: #807b76; font-weight: 400; }

.lock-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lock-circ {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #1c1c1e;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 5px #17F28C, inset 0 0 0 8px #1c1c1e;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.lock-rect {
  min-width: 168px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #1c1c1e;
}
.lock-rect strong { display: block; font-size: 14px; }
.lock-rect span { font-size: 12px; color: #9e9a95; }

.watch-circ {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #000;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 4px #17F28C, inset 0 0 0 7px #000;
  color: #17F28C;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.size-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #9e9a95;
  font-size: 11px;
  font-weight: 600;
}

.catalog-row { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 720px) {
  .catalog-row { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3rem; }
  .catalog-row-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
  .catalog-row-rev .catalog-visual { order: 2; }
}

.catalog-visual {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 24px;
  background: #19191a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.catalog-visual .w-s { width: min(100%, 10.2rem); }
.catalog-visual .w-m,
.catalog-visual .w-l { width: min(100%, 21.2rem); }

@media (prefers-reduced-motion: no-preference) {
  .w-board .w,
  .catalog-row {
    animation: w-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .w-board .w:nth-child(1) { animation-delay: 0.04s; }
  .w-board .w:nth-child(2) { animation-delay: 0.1s; }
  .w-board .w:nth-child(3) { animation-delay: 0.14s; }
  .w-board .w:nth-child(4) { animation-delay: 0.18s; }
  .w-board .w:nth-child(5) { animation-delay: 0.22s; }
}
@keyframes w-in {
  from { opacity: 0.001; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
