/* The league picker: the app's front door. One card per league. */

.leagues__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.leagues__title {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

.leagues__empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.leagues__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Tokens in breakpoints.css; @media values are duplicated by necessity. */
@media (min-width: 768px) {
  .leagues__list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.leagues__item {
  display: flex;
}

.leagues__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--card-pad-sm);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-control);
}

.leagues__link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.leagues__name {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.leagues__description {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* The mint rule that marks a league card as the app's one saturated accent. */
.leagues__link::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--mint-500);
}
