@use "../../../scss/globals.scss";

.recent-games {
  &__box {
    padding: calc(globals.$spacing-unit * 2);
  }

  &__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(globals.$spacing-unit * 2);
  }

  &__list-item {
    display: flex;
    cursor: pointer;
    transition: all ease 0.1s;
    color: globals.$muted-color;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    padding: globals.$spacing-unit;
    gap: calc(globals.$spacing-unit * 2);
    align-items: center;

    &:hover {
      background-color: rgba(255, 255, 255, 0.15);
      text-decoration: none;
    }
  }

  &__game-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
  }

  &__game-details {
    display: flex;
    flex-direction: column;
    gap: calc(globals.$spacing-unit / 2);
    overflow: hidden;
  }

  &__game-title {
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  &__game-description {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: globals.$spacing-unit;
  }
}
