/* P15 — Exercise rotation (diversity) styling.
 * Same restrained glass surface as the warm-up, cool-down, progression,
 * feedback and substitution blocks. No new palette: a cool teal accent marks
 * "fresh variety", the existing rose tone marks "no fresh alternative".
 */
.workout-rotation {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding: 1rem 1rem 0.85rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(190, 231, 235, .16);
  background: linear-gradient(150deg, rgba(190, 231, 235, .06), rgba(255, 255, 255, .022));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px rgba(0, 0, 0, .14);
}

.workout-rotation-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.workout-rotation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  color: #7fdcd4;
  background: rgba(190, 231, 235, .12);
  border: 1px solid rgba(190, 231, 235, .26);
}

.workout-rotation h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.workout-rotation-subtitle {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, .74);
}

.workout-rotation-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.workout-rotation-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
}

.workout-rotation-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.workout-rotation-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f5f8fa;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.workout-rotation-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, .66);
}

.workout-rotation-suggestion {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7fdcd4;
  overflow-wrap: anywhere;
}

.workout-rotation-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

.workout-rotation-chip.is-ok {
  color: rgba(190, 231, 235, .9);
  background: rgba(190, 231, 235, .1);
  border: 1px solid rgba(190, 231, 235, .2);
}

.workout-rotation-chip.is-fresh {
  color: #7fdcd4;
  background: rgba(127, 220, 212, .12);
  border: 1px solid rgba(127, 220, 212, .3);
}

.workout-rotation-chip.is-blocked {
  color: #fda4af;
  background: rgba(251, 113, 133, .12);
  border: 1px solid rgba(251, 113, 133, .28);
}

.workout-rotation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(127, 220, 212, .34);
  color: #062024;
  background: linear-gradient(180deg, #8fe6de, #5cc9c0);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.workout-rotation-button:hover,
.workout-rotation-button:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(92, 201, 192, .26);
  outline: none;
}

.workout-rotation-button:active {
  transform: scale(.985);
}

.workout-rotation-button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.workout-rotation-note {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, .6);
}

@media (max-width: 380px) {
  .workout-rotation {
    padding: 0.85rem 0.8rem 0.75rem;
  }

  .workout-rotation-name {
    font-size: 0.82rem;
  }
}

/* ТЗ 5.11: каждую замену можно применить отдельно. */
.workout-rotation-row { position: relative; }
.workout-rotation-swap { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border: 1px solid rgba(53, 230, 255, .35); border-radius: 999px; color: #a7f6ff; background: rgba(53, 230, 255, .08); font-size: 13px; font-weight: 800; cursor: pointer; }
.workout-rotation-swap:hover, .workout-rotation-swap:focus-visible { background: rgba(53, 230, 255, .18); }
