/* Studies list: pills menu (Mine | Public), overlapping creator thumbnails, expandable creator section */

.studies-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.studies-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.studies-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.studies-pill-active {
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(129, 140, 248, 0.5);
  color: rgb(224, 231, 255);
}

.studies-pill-active:hover {
  background: rgba(99, 102, 241, 0.5);
  border-color: rgba(129, 140, 248, 0.6);
  color: rgb(224, 231, 255);
}

.study-row-thumbnails {
  display: flex;
  align-items: center;
  margin-left: 0.25rem;
}

.study-row-thumb {
  margin-left: -8px;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.study-row-thumb:first-child {
  margin-left: 0;
}

.study-row-thumb:hover {
  z-index: 1;
}

.study-row-thumb img,
.study-row-thumb span {
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.study-row-creators-trigger {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

.study-row-creators-trigger:focus {
  outline: none;
}

.study-row-creators-expanded {
  transition: opacity 0.15s ease, max-height 0.2s ease;
}

.study-row-creators-expanded.hidden {
  display: none !important;
}

.study-row-creators-expanded:not(.hidden) {
  display: block;
}

.study-row-creators-wrap[aria-expanded="true"] .study-row-creators-chevron {
  transform: rotate(180deg);
}

.study-row-creators-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}
