/* Playful reskin — custom animations + the stepped progress bar.
   Layout & colours are mostly Tailwind utility classes in the HTML. */

/* ---- Animations ---- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-30px) rotate(8deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@keyframes pop {
  0%   { transform: scale(.4); }
  70%  { transform: scale(1.25); }
  100% { transform: scale(1.12); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .45;
  animation: floatSlow 9s ease-in-out infinite;
}
.sparkle {
  position: absolute;
  font-size: 1.4rem;
  animation: twinkle 2.4s ease-in-out infinite;
}
.mascot { animation: bob 4s ease-in-out infinite; }

/* ---- Stepped progress bar ---- */
.progress__track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: #eceefa;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(26, 26, 46, .12);
}
.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF2D55, #FF9F1C, #FFD60A, #00C2AB, #3A86FF, #9B5DE5);
  background-size: 220% 100%;
  animation: gradientShift 4s ease infinite;
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.progress.is-error .progress__fill {
  background: #FF2D55;
  animation: none;
}

.progress__steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 18px 0 0;
}
.progress__steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: #9aa0b4;
  transition: color .3s ease;
}
.progress__steps li .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: #eceefa;
  box-shadow: 0 4px 10px rgba(26, 26, 46, .06);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.progress__steps li.is-done { color: #00C2AB; }
.progress__steps li.is-done .dot { background: rgba(0, 194, 171, .15); }
.progress__steps li.is-active { color: #1A1A2E; }
.progress__steps li.is-active .dot {
  background: #fff;
  box-shadow: 0 8px 20px rgba(155, 93, 229, .4);
  animation: pop .45s ease forwards;
}

/* ---- Review timeline editor ---- */
.clip {
  border: 2px solid #eceefa;
  border-radius: 20px;
  padding: 14px 16px;
  background: #fbfbff;
}
.clip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.clip-name { font-weight: 700; color: #1A1A2E; }
.clip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #9B5DE5;
  cursor: pointer;
  user-select: none;
}
.clip-toggle input { width: 16px; height: 16px; accent-color: #9B5DE5; }

.clip-track {
  position: relative;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 194, 171, .18);   /* kept part (green) */
  overflow: hidden;
}
.clip-cut {                              /* removed outro part (red) */
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 100%;
  background: repeating-linear-gradient(45deg, rgba(255, 45, 85, .28) 0 10px, rgba(255, 45, 85, .16) 10px 20px);
  border-left: 2px dashed #FF2D55;
  transition: left .05s linear;
}
.clip.is-whole .clip-cut { left: 100% !important; border-left: none; }

.clip-track input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
}
.clip-track input[type=range]:disabled { cursor: default; opacity: .45; }
.clip-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 44px;
  border-radius: 8px;
  background: #1A1A2E;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(26, 26, 46, .35);
  cursor: ew-resize;
}
.clip-track input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #1A1A2E;
  cursor: ew-resize;
}
.clip-track input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.clip-track input[type=range]::-moz-range-track { background: transparent; }

.clip-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .8rem;
  color: #6b7280;
}
.clip-cutlabel { font-weight: 700; color: #FF2D55; }
.clip.is-whole .clip-cutlabel { color: #00C2AB; }

.clip-num {
  width: 110px;
  border: 2px solid rgba(155, 93, 229, .25);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: .9rem;
}
