/* Workout Examples Viewer Styles */

.workout-examples-container {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Turbo Frame should also use grid for its contents */
#workout-example-content {
  display: grid;
  grid-template-columns: 35% 40%;
  gap: 1rem;
  grid-column: 2; /* Place in second column */
}

@media (max-width: 1024px) {
  .workout-examples-container {
    grid-template-columns: 1fr;
  }

  #workout-example-content {
    grid-template-columns: 1fr;
    grid-column: 1;
  }
}

/* Example List Panel */
.workout-examples__list {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.example-category-header {
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #6c757d;
  margin: 1rem 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #dee2e6;
}

.example-category-header:first-child {
  margin-top: 0;
}

.example-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.example-list-item {
  margin: 0;
}

.example-link {
  display: block;
  padding: 0.1rem 0.75rem;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.example-link:hover {
  background-color: #e9ecef;
  color: #212529;
}

.example-list-item.active .example-link {
  background-color: #007bff;
  color: white;
  font-weight: 500;
}

.example-list-item.active .example-link:hover {
  background-color: #0056b3;
}

/* Description Editor Panel */
.workout-examples__editor {
  display: flex;
  flex-direction: column;
}

.workout-description-textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 400px;
}

.help-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

/* Preview Panel */
.workout-examples__preview {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* Card styling (if not already defined globally) */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.subtitle {
  color: #6c757d;
  margin-bottom: 1rem;
}
