@import '../Styles/styles.scss';

TitleList {
  position: relative;
  width: 100%;
  height: 100%;
  flex-direction: column;
  margin-left: 4px;
  padding: 8px;

  .claim-missing-button {
    height: 46px;
    width: 100%;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    border-left: 4px solid $selected;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.1s;
    pointer-events: all;
    flex-shrink: 0;

    .claim-missing-text {
      white-space: nowrap;
      flex-shrink: 0;
    }

    &:hover {
      background-color: rgba(20, 20, 20, 0.92);
      border-left-color: white;
      sound-in: ui.button.over;
    }

    &:active {
      sound-in: ui.button.press;
      background-color: rgba(35, 35, 35, 0.95);
    }
  }

  .titles {
    flex-direction: column;
    gap: 8px;
    overflow: scroll;
  }

  .title-preview {
    position: relative;
    min-height: 62px;
    width: 100%;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    transition: all 0.1s;

    .title-name {
      font-size: 28px;
      color: white;
      font-weight: bold;
    }

    .lock-icon {
      position: absolute;
      right: 14px;
      font-size: 32px;
      color: rgba(255, 255, 255, 0.62);
    }

    .equipped-label {
      padding: 4px 8px;
      background-color: #e1e1e1;
      color: black;
      font-size: 16px;
      font-weight: bold;
    }

    &.locked {
      opacity: 0.45;
    }

    &:hover,
    &.selected {
      border-width: 4px;
      border-color: #e1e1e1;
    }

    &.equipped {
      border-color: $selected;
    }
  }

  .scrollbar {
    position: absolute;
    height: 462px;
    width: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    left: -12px;
    padding: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.05s;

    .scrollbar-thumb {
      background-color: $selected;
      width: 100%;
    }

    &.show {
      opacity: 1;
    }
  }
}
