/**
 * @file
 * Styles for AJAX click-to-load content.
 */

/* Focus listing expandable section */
.focus-listing__expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.focus-listing__expandable.is-expanded {
  max-height: none;
  overflow: visible;
}

/* Actions container */
.focus-listing__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Expand trigger button */
.focus-listing__expand-trigger {
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.focus-listing__expand-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Toggle text visibility based on expanded state */
.focus-listing__expand-trigger[aria-expanded="false"] .collapse-text {
  display: none;
}

.focus-listing__expand-trigger[aria-expanded="true"] .expand-text {
  display: none;
}

/* Loading spinner */
.loading-spinner {
  padding: 2rem;
  text-align: center;
  font-style: italic;
  opacity: 0.7;
}

/* Error and no-content messages */
.error-message,
.no-content {
  padding: 1rem;
  text-align: center;
  opacity: 0.7;
}

.error-message {
  color: #d32f2f;
}

/* Content container */
.focus-listing__content {
  padding-top: 1rem;
}
