@import "../../../variables";
.searchbar-wrapper {
  position: relative;
  width: 24em;
  margin-right: 1em;
  @media screen and (max-width: 700px) {
    width: 23em;
  }
  @media screen and (max-width: 700px) {
    // width: 95%;
    margin-right: 0em;
  }
  .search-panel {
    position: absolute;
    top: 110%;
    background-color: $light-theme-bg-color;
    border-radius: 6px;
    width: 100%;
    z-index: 999;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
    0px 4px 5px 0px rgba(0, 0, 0, 0.14),
    0px 1px 10px 0px rgba(0, 0, 0, 0.12);

    .see-advanced-results {
      padding: 1em;
      text-align: center;
    }
  }
}
.searchbar {
  position: relative;
  transition: all 0.5s;
  font-size: 1.2rem;
  border-radius: 8px;
  background-color: rgb(226, 226, 226);
  input {
    border: none;
    font-weight: bold;
    padding: 0.2rem 2.3rem;
    width: 100%;
    color: black;
    border-radius: 8px;
  }
  .style-search-icon {
    position: absolute;
    left: 0.5rem;
    width: 1.15rem;
    top: 50%;
    svg {
      fill: $dark-theme-text-color !important;
    }
    transform: translateY(-50%);
  }
  .searchbar-bottom-nav {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }
}
.searchbar-wrapper .v-item-group.v-bottom-navigation {
  bottom: 0;
  display: flex;
  left: 0;
  width: 100%;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
  0px 4px 5px 0px rgba(0, 0, 0, 0.14),
  0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  &::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    transform: translateX(-50px);
  }
  .v-btn {
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.6rem !important;
    height: inherit !important;
    max-width: 168px !important;
    min-width: 50px !important;
    position: relative !important;
    text-transform: none !important;
  }
}
.search-panel {
  .search-results-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.6em 0.5em;
    .search-result {
      border-radius: 10px;
      transition: background-color 0.5s;
      &:hover {
        background-color: rgba(201, 201, 201, 0.308);
      }
      display: flex;
      align-items: center;
      cursor: pointer;
      .cover {
        padding: 0.5em;
        & > * {
          border-radius: 7px;
        }
      }
      .body {
        color: $light-theme-text-color;
        .asset-title {
          font-weight: 600;

          font-size: 0.95em !important;
        }
        .asset-artists {
          font-size: 0.8em !important;
          opacity: 0.85;
        }
      }
    }
    .search-category {
      .category-title {
        color: #4c60a3;
        font-size: 0.9rem;
        font-weight: bold;
        padding-left: 0.5rem;
        padding-top: 0.6rem;
      }
      .category-results {
        padding: 0.5em 0 0.5em 0.9em;
      }
    }
  }
}
.player--dark {
  .searchbar-wrapper {
    .search-panel {
      box-shadow: none;
      background-color: $dark-theme-panel-bg-color;
      .search-results-container {
        .search-result {
          .body {
            color: $dark-theme-text-color;
          }
        }
        .search-category {
          .category-title {
            color: #4c60a3;
          }
        }
      }
    }
  }
  .searchbar {
    background-color: rgb(238, 238, 238);
  }
}