/* ------- IMPORT GOOGLE POOPINS FONT + VARIABLES ------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --dark-background: rgba(0, 0, 0, 0.15);
  --light-background: rgba(255, 255, 255, 0.25);
  --transition05: all 0.5s;
}

/* RESET + GLOBAL STYLING */
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  font-weight: 600;
}

body {
  background: url("Assets/images/morphine-background.jpg") no-repeat center center/cover;
  height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  backdrop-filter: blur(5px);
  height: 100dvh;
  width: 100%;
  background: var(--dark-background);
  z-index: -1;
}

/* MAIN CONTAINER */
.main-container {
  height: 550px;
  width: 300px;
  padding: 20px;
  overflow: hidden;
}

/* ----------------- SEARCH CONTAINER ----------------- */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 250px;
  height: 50px;
}

.search-input {
  padding: 10px 10px 10px 32px;
  outline: none;
  border-radius: 99px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: var(--transition05);
}

.search-input::placeholder {
  color: #f0f2f27a;
}

.search-input:focus {
  border: 3px solid white;
  transition: var(--transition05);
}

/* ----------------- SUGGESTIONS ----------------- */
.suggestion-search {
  display: none;
  background-color: #262626;
  border-radius: 10px;
  max-height: 270px;
  overflow-y: auto;
  width: 100%;
  padding: 30px 18px 20px 18px;
  z-index: 10;
  position: absolute;
  top: 100%;
}

.suggestion-search::-webkit-scrollbar {
  width: 10px;
}

.suggestion-search::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.suggestion-search::-webkit-scrollbar-track {
  margin-top: 20px;
  margin-bottom: 20px;
}

.suggestion-result {
  list-style-type: none;
  display: flex;
  align-items: center;
  padding: 15px 10px;
  gap: 10px;
  cursor: pointer;
  transition: background 0.1s;
}

.suggestion-result:hover {
  background: rgba(255, 255, 255, 0.1);
}

.img-container {
  position: relative;
  width: 35px;
  height: 35px;
}

.music-img {
  width: 35px;
  height: 35px;
  display: block;
  transition: all 0.5s;
}

/* Play overlay on hover */
.img-container::after {
  content: "\25B6";
  position: absolute;
  top: 0;
  color: white;
  opacity: 0;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.img-container:hover::after {
  opacity: 1;
}

.song-result-name {
  font-weight: 500;
  color: white;
}

.song-result-name:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.song-result-artist {
  font-weight: 400;
  color: white;
}

.search-result-title {
  margin-bottom: 10px;
}

/* ----------------- IMAGE CONTAINER ----------------- */
.image-container {
  margin-top: 20px;
  width: 250px;
  height: 250px;
}

.song-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ----------------- MUSIC CONTROLLERS ----------------- */
.music-container {
  margin-top: 30px;
  background-color: #262626;
  width: 250px;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.music-progress {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.progress-bar-container {
  width: 80%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.progress {
  background-color: white;
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.music-controles {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 5px;
  text-align: center;
}

.music-controles span {
  font-size: 30px;
  cursor: pointer;
}

.music-info-artist {
  font-weight: 400;
  padding-bottom: 15px;
}

.music-time {
  font-size: 10px;
  padding: 5px 10px;
}
