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

@keyframes gradientBorder {
  0% {
    border-image-source: linear-gradient(0deg, #16b195 50%, #3e62c0 100%);
  }
  50% {
    border-image-source: linear-gradient(90deg, #3e62c0 50%, #16b195 100%);
  }
  100% {
    border-image-source: linear-gradient(180deg, #16b195 50%, #3e62c0 100%);
  }
}

.catalogue {
  display: flex;
  flex-direction: column;
  gap: calc(globals.$spacing-unit * 2);
  width: 100%;
  padding: 16px;

  &__search-container {
    background-color: globals.$dark-background-color;
    display: inline-flex;
    transition: all ease 0.2s;
    width: 200px;
    align-items: center;
    border-radius: 8px;
    border: 1px solid globals.$border-color;
    height: 40px;

    &:hover {
      border-color: rgba(255, 255, 255, 0.5);
    }

    &--focused {
      width: 250px;
      border-color: #dadbe1;
    }
  }

  &__search-icon-button {
    color: inherit;
    cursor: pointer;
    transition: all ease 0.2s;
    padding: 8px;

    &:hover {
      color: #dadbe1;
    }
  }

  &__search-clear-button {
    color: inherit;
    cursor: pointer;
    transition: all ease 0.2s;
    padding: 8px;

    &:hover {
      color: #dadbe1;
    }
  }

  &__search-input {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    outline: none;
    color: #dadbe1;
    cursor: default;
    font-family: inherit;
    text-overflow: ellipsis;
  }

  &__game-item {
    background-color: globals.$dark-background-color;
    width: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid globals.$border-color;
    cursor: pointer;
    gap: 12px;
    transition: all ease 0.2s;

    &:hover {
      background-color: rgba(255, 255, 255, 0.05);
    }
  }

  &__filters-container {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    background-color: globals.$dark-background-color;
    border-radius: 4px;
    padding: 16px;
    border: 1px solid globals.$border-color;
  }

  &__ai-recommendations-button-text {
    font-weight: 400;
    color: #fff;
    background: linear-gradient(0deg, #16b195 50%, #3e62c0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }
}
