/*
 * Блоки главной после «Расписания детей» (index.html):
 * .template-teaser-rewards — дела и награды для детей (tasks.html),
 * .template-teaser-wishlist — списки желаний (wishlist.html),
 * .template-teaser-notes — голосовые заметки (notes.html).
 * Каркас блока — общий .template-teaser из home.css,
 * здесь только статичные иллюстрации справа (без JS).
 */

.ft-art {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-height: 420px;
  align-content: center;
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--ink);
}

.ft-art img {
  display: block;
}

.ft-card {
  position: relative;
  width: min(380px, 100%);
  padding: 18px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(28, 39, 70, 0.12);
}

.ft-card + .ft-card {
  margin-top: 14px;
}

.ft-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ft-card-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ft-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ft-pill-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.ft-pill-green {
  background: var(--sage-soft);
  color: #3d6b50;
}

.ft-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ft-row + .ft-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(21, 23, 28, 0.06);
}

.ft-row-body {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.ft-row-body strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-row-body span {
  color: var(--muted);
  font-size: 12px;
}

/* Чекбокс — общий блок .app-check; кольцо того же размера, что прежний кружок 24px. */
.ft-check {
  --app-check-box: 24px;
  --app-check-img: 32px;
}

.ft-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ft-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--blue-600);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.ft-btn-ghost {
  background: var(--blue-100);
  color: var(--blue-700);
}

.ft-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 207, 74, 0.25);
}

.ft-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcf4a, #ffb21e);
}

.ft-float {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(28, 39, 70, 0.18));
}

.ft-toast {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  max-width: 230px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(18, 27, 52, 0.94);
  color: #fff;
  box-shadow: 0 16px 36px rgba(18, 27, 52, 0.28);
}

.ft-toast small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ft-toast strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

/* — Дела и награды — */

.template-teaser-rewards {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 207, 74, 0.26), transparent 30rem),
    radial-gradient(circle at 0 100%, rgba(47, 107, 255, 0.1), transparent 24rem),
    #fbfaf6;
}

.ft-rewards .ft-float {
  top: -6px;
  right: -4px;
  width: 132px;
  height: 132px;
}

.ft-rewards .ft-toast {
  bottom: 18px;
  left: -8px;
}

/* — Списки желаний — */

.ft-gift-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f2ef;
}

.ft-gift-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-gift-done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.ft-wishlist .ft-float {
  top: -18px;
  right: -6px;
  width: 128px;
  height: 128px;
}

.ft-wishlist .ft-toast {
  position: relative;
  inset: auto;
  justify-self: start;
  margin: 0 0 14px;
}

.ft-row-body .ft-pill {
  justify-self: start;
}

/* — Голосовые заметки — */

.template-teaser-notes {
  background:
    radial-gradient(circle at 100% 0, rgba(136, 169, 149, 0.22), transparent 30rem),
    radial-gradient(circle at 0 100%, rgba(47, 107, 255, 0.1), transparent 24rem),
    #fbfaf6;
}

.ft-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 650;
}

.ft-voice-mic {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
}

.ft-voice-wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.ft-voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.ft-note-text {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.4;
}

.ft-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ft-target {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f6f5f1;
  font-size: 11px;
  font-weight: 620;
  text-align: center;
}

.ft-target img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ft-target-active {
  border-color: rgba(47, 107, 255, 0.35);
  background: var(--blue-100);
  color: var(--blue-700);
}

@media (max-width: 760px) {
  .ft-art {
    min-height: 0;
  }

  .ft-card {
    padding: 15px;
    border-radius: 20px;
  }

  .ft-art .ft-float {
    display: none;
  }

  .ft-rewards .ft-toast,
  .ft-wishlist .ft-toast {
    position: relative;
    inset: auto;
    max-width: none;
    width: min(380px, 100%);
    margin-top: 14px;
  }

  .ft-wishlist .ft-toast {
    margin: 0 0 14px;
  }

  .ft-targets {
    gap: 6px;
  }

  .ft-target {
    font-size: 10px;
  }

  .ft-target img {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .template-teaser:hover .ft-float {
    transform: translateY(-4px) rotate(-3deg);
    transition: transform 220ms ease;
  }
}
