// Activity list ("feed"): views/components/objects/activity-feed.php
// Wide layout under the post; below 380px (a sidebar) it switches to the short form.
.wps-activity-feed {
  container-type: inline-size;
  color: #1E1E1E;
  font-size: 13px;
  line-height: 18px;

  &__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  &__item {
    margin: 0;
    border-bottom: 1px solid #F3F4F5;

    &:last-child {
      border-bottom: 0;
    }
  }

  &__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
    border-radius: 4px;

    &:is(a):hover,
    &:is(a):focus-visible {
      color: inherit;
      background: #FAFAFB;
      box-shadow: -6px 0 0 #FAFAFB, 6px 0 0 #FAFAFB;
    }

    &:is(a):focus {
      box-shadow: none;
      outline: none;
    }

    &:is(a):focus-visible {
      outline: 2px solid var(--wp-admin-theme-color, #404BF2);
      outline-offset: 1px;
    }
  }

  &__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  &__text {
    display: grid;
    min-width: 0;
  }

  &__line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__title {
    font-weight: 500;
    color: #0C0C0D;
  }

  &__sub {
    font-size: 12px;
    color: #6B6E73;
  }

  &__sep {
    color: #A9AAAE;
  }

  &__aside {
    display: grid;
    justify-items: end;
    font-size: 12px;
    color: #6B6E73;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: end;

    b {
      font-weight: 500;
      font-size: 13px;
      color: #0C0C0D;
    }
  }

  &__narrow {
    display: none;
  }

  &__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #F0F0F0;
    font-size: 12px;
    color: #6B6E73;

    a {
      color: #404BF2;
      font-weight: 500;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .wps-empty-state {
    padding: 16px 8px;
  }

  @container (max-width: 380px) {
    &__wide {
      display: none;
    }

    &__narrow {
      display: inline;
    }

    &__row {
      gap: 8px;
    }
  }
}
