/* body styles were here but are currently commented out */
@import url("https://fonts.googleapis.com/css2?family=Manufacturing+Consent&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto Condensed", sans-serif;
}
body {
  background-color: #121212;
  color: white;
  margin-top: -10px; /* pulls content up */
  overflow-x: hidden;
}

.left {
  width: 25vw;
  padding: 2px 10px;
}
/* Logo styling */
/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-img {
  width: 35px;
  height: 35px;
}

.logo-text {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif; /* nice modern font */
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Search container */
.search-container {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  padding: 6px 10px;
  border-radius: 20px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  right: 10px;
  filter: invert(1); /* make icon white */
}

.search-bar {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.search-bar::placeholder {
  color: #aaa;
}

.search-container:focus-within {
  box-shadow: 0 0 12px #ccdff4; /* glow on focus */
}

/* Sidebar links */
.home ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 10px 0;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease; /* smooth hover and click transitions */
}

/* Hover effect */
.home ul li:hover {
  color: #fffdfd; /* subtle highlight on hover */
}

/* Click/active effect for glow */
.home ul li:active {
  transform: scale(0.98); /* slight press effect */
}

.right {
  width: 75vw;
  position: relative;
}

.heading {
  gap: 15px;
  display: flex;
  width: 100%;
  padding-top: 14px;
  font-weight: bold;
  align-items: center;
  padding: 23px 14px;
  font-size: 13px;
}
.home ul li img {
  width: 20px;
  height: 20px;
}
.heading img {
  width: 28px;
  height: 28px;
}
.footer {
  display: flex;
  font-size: 12px;
  color: gray;
  gap: 13px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 0;
  padding: 10px;
}
.footer a {
  text-decoration: none;
  color: gray;
}
.library {
  min-height: 70vh;
  position: relative;
}
.header {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(
    140deg,
    #1c1f1c 10%,
    #4a4d4d 25%,
    #2d2d30 50%,
    #232121 75%,
    #575757 100%
  );
  border-radius: 1px 99px 1px 99px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 -2px 5px rgba(255, 255, 255, 0.2);
  padding: 1px 5px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid #999;
  position: relative;
  height: 60px;
  align-items: center;
}

.header img {
  width: 30px;
  height: 30px;
}
.header > * {
  padding: 20px;
}

/* flickering effect for My Logo */
.nav img {
  width: 200px;
  font-weight: bold;
  height: auto;
  max-height: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: -60px; /* adjust as needed */
  margin-top: 10px; /* adjust as needed */

  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff)
    drop-shadow(0 0 20px #ffffff) brightness(1.2);

  mix-blend-mode: luminosity;

  /* Flicker animation */
  animation: flicker 2s infinite;
}

/* Flicker keyframes */
@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px #ffffff)
      drop-shadow(0 0 1px #ffffff) brightness(1.2);
  }
  20%,
  24%,
  55% {
    opacity: 0.6; /* dim for a moment */
    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 5px #ffffff)
      brightness(1.2);
  }
}

.right {
  margin: 16px 0;
}
.SpotifyPlaylist {
  padding: 16px;
  position: relative;
}
.SpotifyPlaylist h1 {
  font-size: 30px;
  font-family: "Poppins", Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: left;

  /* Gradient Text */
  background: linear-gradient(90deg, #20eb67, #1ed760, #1db954);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Glow Effect */
  text-shadow: 0px 0px 12px rgb(21, 207, 86);

  /* Animation */
  animation: slideInLeft 4s ease-out;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(80px); /* Start from left */
  }
  100% {
    opacity: 1;
    transform: translateX(2); /* End at normal position */
  }
}
.SpotifyPlaylist p {
  font-size: 15px;
  color: #b3b3b3;
  font-style: italic;
}
.hamburgerContainer {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.hamburger {
  width: 35px;
  height: 35px;
  display: none; /* hidden on desktop */
  cursor: pointer;
}
.close {
  display: none;
}

/* ====== Responsive Design ====== */

/* Large screens (default styles already handled) */
@media (max-width: 1200px) {
  /* Hamburger menu */
  .hamburger {
    display: block;
    margin: 15px;
    cursor: pointer;
    z-index: 1001;
  }

  /* Seekbar & Playbar adjustments */
  .seekbar {
    position: absolute;
    bottom: 0;
    width: calc(100vw - 60px);
    left: 30px;
  }

  .playbar {
    position: absolute;
    bottom: 0;
    width: calc(100vw - 60px);
    right: 25px;
  }

  /* Navbar spacing */
  .nav {
    justify-content: space-between;
  }

  .song-btn {
    position: absolute;
  }

  /* Sidebar adjustments */
  .left {
    position: fixed;
    left: -100%;
    top: 0;
    height: 99%;
    z-index: 900;
    background-color: #000;
    width: 300px;
    transition: all 0.3s ease;
    overflow-y: auto; /* scroll if content too long */
  }

  .left .close {
    position: absolute;
    right: 31px;
    top: 25px;
    width: 29px;
    display: block;
    cursor: pointer;
  }

  .left .close img:hover {
    transform: scale(1.2);
    transition: transform 0.2s;
  }

  .left.show {
    left: 0;
  }

  /* Right section */
  .right {
    width: 100vw;
    transition: margin-left 0.3s ease;
    background-color: #000;
    height: 98%;
    top: 0;
    position: fixed;
    overflow-y: auto;
  }

  /* Optional: dim background when sidebar open */
  .right.dimmed {
    filter: brightness(0.6);
  }

  /* Card & container adjustments */
  .card {
    width: 100%;
    margin-bottom: 10px;
  }

  .CardContainer {
    margin: 0;
    padding: 0;
  }

  /* Navbar center alignment */
  .nav {
    justify-content: center;
  }

  .button {
    gap: 4px;
    height: 50px;
    width: 40px;
    display: flex;
    justify-content: flex-end;
    margin: 0;
  }

  .song-timer {
    display: none;
  }

  /* Song name scroll adjustments */
  .songname-scroll {
    font-size: 0.9rem;
  }
}

/* Small screens */
@media (max-width: 500px) {
  .card {
    width: 100%;
  }

  .header > * {
    padding: 2px;
  }

  .playbar {
    right: 10px;
    width: calc(100vw - 20px);
  }

  .seekbar {
    width: calc(100vw - 20px);
    left: 10px;
  }

  .hamburger {
    margin: 10px;
  }

  .song-info {
    font-size: 0.8rem;
  }

  .button {
    gap: 2px;
    height: 45px;
    width: 35px;
  }
}

/* Extra small screens */
@media (max-width: 350px) {
  .songname-scroll {
    font-size: 0.7rem;
  }

  .button img {
    width: 20px;
    height: 20px;
  }

  .playbar, .seekbar {
    bottom: 5px;
  }
}
