/* Workout Modal Styles */

.workout-modal-grid {
  display: block;
}

/* Two-column layout on desktop */
@media screen and (min-width: 768px) {
  .workout-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.workout-modal-description {
  /* Left column */
}

.workout-modal-intensity {
  /* Right column */
}

/* `.workout-badges` previously wrapped the modal's hand-rolled
   scoring case ladder. The view now renders through
   `.format-badge-row` (defined in badges.css) via
   Components::FormatBadgeRenderer. */

.workout-format {
  margin-bottom: 0.5rem;
}

.workout-modal-description .workout-description {
  margin-bottom: 1rem;
}

.workout-modal-description .workout-description pre {
  white-space: pre-wrap;
  background: var(--surface-light, #f9fafb);
  padding: 0.75rem;
  border-radius: 0.25rem;
}

.workout-notes {
  margin: 1rem 0;
}

.note-section {
  margin-bottom: 0.75rem;
}

.note-section:last-child {
  margin-bottom: 0;
}

.note-section h4,
.workout-elements h4,
.workout-equipment h4,
.workout-schedule h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.note-section p {
  white-space: pre-wrap;
}

.workout-elements,
.workout-equipment,
.workout-schedule {
  margin-bottom: 1rem;
}

.workout-elements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workout-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workout-schedule-date {
  color: var(--dark-gray);
}

.workout-schedule-cycle {
  color: var(--medium-gray);
  margin-left: 0.5rem;
}

.workout-schedule-overflow {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

.workout-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e5e7eb);
}
