/* COVER FLOW SECTION - iPod Style */
.cover-flow {
  background-color: #551a25;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 800px;
}

.cover-flow-container {
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.cover-flow-title {
  text-align: center;
  color: #f4e3c1;
  font-size: 2.2rem;
  margin-bottom: 1px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cover-flow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 4000px;
  min-height: 800px;
  padding: 60px 0;
  transform-style: preserve-3d;
  position: relative;
  overflow: visible;
}

.cover-item {
  width: 400px;
  position: absolute;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
  cursor: pointer;
  text-decoration: none;
  color: #f4e3c1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cover-item img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.album-info {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  background: rgba(85, 26, 37, 0.9);
  padding: 15px;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s ease;
  
}

.cover-item.active .album-info {
  transform: translateY(0);
  opacity: 1;
}

.album-info h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  color: #f4e3c1;
}

.album-info p {
  font-size: 1rem;
  margin: 0;
  color: #d19153;
}



.spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1DB954;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.spotify-link:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.spotify-link img {
  width: 24px;
  height: 24px;
}

/* Previous items styling - enhanced 3D */
.cover-item.prev {
  transform: translateX(-180%) translateZ(-1200px) translateY(-100px) rotateY(65deg) scale(0.85);
  opacity: 0.3;
  z-index: 1;
}

.cover-item.prev + .cover-item.prev {
  transform: translateX(-90%) translateZ(-600px) translateY(-50px) rotateY(65deg) scale(0.9);
  opacity: 0.6;
  z-index: 2;
}

/* Active item styling - enhanced prominence */
.cover-item.active {
  transform: translateX(0) translateZ(300px) translateY(0) rotateY(0) scale(1.1);
  z-index: 5;
  opacity: 1;
}

.cover-item.active img {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

/* Next items styling - enhanced 3D */
.cover-item.next {
  transform: translateX(90%) translateZ(-600px) translateY(-50px) rotateY(-65deg) scale(0.9);
  opacity: 0.6;
  z-index: 2;
}

.cover-item.next + .cover-item.next {
  transform: translateX(180%) translateZ(-1200px) translateY(-100px) rotateY(-65deg) scale(0.85);
  opacity: 0.3;
  z-index: 1;
}

/* Enhanced reflection effect */
.cover-item::after {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 120%;
  background: linear-gradient(to bottom, 
    rgba(244, 227, 193, 0.5) 0%,
    rgba(244, 227, 193, 0.3) 20%,
    rgba(244, 227, 193, 0.15) 40%,
    transparent 100%);
  transform: perspective(1000px) rotateX(60deg) scaleY(0.5);
  filter: blur(3px);
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: bottom;
}

.cover-item.active::after {
  opacity: 0.7;
  height: 140%;
}

.cover-flow-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1400px;
  z-index: 10;
  padding: 0 40px;
}

.cover-flow-nav button {
  background: none;
  border: none;
  color: #f4e3c1;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-flow-nav button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Album Info Styles */
.album-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -130px;
  text-align: center;
  color: #f4e3c1;
  z-index: 10;
  background-color: rgba(85, 26, 37, 0.95);
  padding: 15px 0;
  border: 2px solid #d19153;
  width: 400px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover-item.active .album-info {
  opacity: 1;
}

.album-info h3 {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #f4e3c1;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
}

.album-info p {
  font-size: 1.1rem;
  margin: 0;
  color: #d19153;
  opacity: 0.9;
  width: 100%;
  text-align: center;
}

.spotify-link {
  display: inline-block;
  background-color: #1DB954;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  margin-top: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.spotify-link:hover {
  transform: translateY(-2px);
  background-color: #1ed760;
}

/* Enhanced depth gradients */
.cover-flow::before,
.cover-flow::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  z-index: 3;
  pointer-events: none;
}

.cover-flow::before {
  left: 0;
  background: linear-gradient(to right, 
    rgba(85, 26, 37, 1) 0%,
    rgba(85, 26, 37, 0.8) 50%,
    transparent 100%);
}

.cover-flow::after {
  right: 0;
  background: linear-gradient(to left, 
    rgba(85, 26, 37, 1) 0%,
    rgba(85, 26, 37, 0.8) 50%,
    transparent 100%);
}

/* GPU acceleration for smoother animations */
.cover-item {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .cover-item {
    width: 350px;
  }
  
  .cover-item img {
    width: 350px;
    height: 350px;
  }

  .album-info {
    width: 350px;
  }
}

@media (max-width: 1024px) {
  .cover-flow {
    min-height: 700px;
  }

  .cover-flow-wrapper {
    min-height: 700px;
    perspective: 3000px;
  }
}

@media (max-width: 768px) {
  .cover-flow {
    min-height: 600px;
    padding: 60px 0 120px;
  }

  .cover-flow-wrapper {
    min-height: 600px;
    perspective: 2000px;
    margin-bottom: 40px;
    padding: 0;
  }

  .cover-item {
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    
  }
  
  .cover-item img {
    width: 280px;
    height: 280px;
  }

  .cover-item.active {
    transform: translateX(-50%) translateZ(0) scale(1);
  }

  .album-info {
    width: 100%;
    max-width: 280px;
    bottom: -100px;
    padding: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(85, 26, 37, 0.98);
    border: 1px solid #d19153;
    margin: 0 auto;
  }

  .cover-item.active .album-info {
    opacity: 1;
    transform: translateX(-50%);
  }

  .album-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .album-info p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .cover-flow-title {
    font-size: 1.8rem;
  }

  /* Adjust 3D effects for mobile */
  .cover-item.prev {
    transform: translateX(-120%) translateZ(-600px) translateY(-50px) rotateY(45deg) scale(0.8);
  }

  .cover-item.next {
    transform: translateX(120%) translateZ(-600px) translateY(-50px) rotateY(-45deg) scale(0.8);
  }
}

@media (max-width: 480px) {
  .cover-flow {
    min-height: 500px;
    padding: 0px 0 100px;
    overflow: hidden;
  }

  .cover-flow-wrapper {
    min-height: 500px;
    perspective: 1500px;
    width: 100%;
    position: relative;
  }

  .cover-item {
    width: 240px;
    position: absolute;
    left: 50%;
  }
  
  .cover-item img {
    width: 240px;
    height: 240px;
  }

  .cover-item.active {
    transform: translateX(-50%) translateZ(0) scale(1);
  }

  .cover-item.prev {
    transform: translateX(-150%) translateZ(-300px) scale(0.8);
    opacity: 0.4;
  }

  .cover-item.next {
    transform: translateX(50%) translateZ(-300px) scale(0.8);
    opacity: 0.4;
  }

  .album-info {
    position: absolute;
    width: 100%;
    max-width: 240px;
    bottom: -90px;
    padding: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .cover-item.active .album-info {
    opacity: 1;
    transform: translateX(-50%);
  }

  .cover-flow-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .album-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .album-info p {
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0 10px;
  }

  /* Simpler 3D effect for small screens */
  .cover-item.prev,
  .cover-item.next {
    transform: translateX(0) translateZ(-400px) translateY(-30px) scale(0.7);
    opacity: 0.4;
  }
}