/* Spotify Now Playing Section Styles */
.spotify-section {
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #30cfd0;
  box-shadow: 0 0 10px rgba(48, 207, 208, 0.5);
  padding: 20px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.spotify-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #30cfd0, transparent);
  animation: scan-line 2s linear infinite;
}

.spotify-section .section-title {
  color: #1DB954; /* Spotify green */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotify-section .section-title i {
  font-size: 1.2em;
}

.spotify-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.spotify-album-art {
  flex: 0 0 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid rgba(48, 207, 208, 0.5);
}

.spotify-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spotify-album-art img:hover {
  transform: scale(1.05);
}

.spotify-info {
  flex: 1;
}

.spotify-info h3 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1.4em;
}

.spotify-info p {
  color: #ccc;
  margin: 0 0 15px 0;
}

.spotify-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 5px;
  overflow: hidden;
}

.spotify-progress-bar {
  height: 100%;
  background: #1DB954;
  width: 0%;
  transition: width 0.5s linear;
}

.spotify-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.spotify-time {
  font-size: 0.8em;
  color: #aaa;
  margin: 0;
}

.spotify-listen-btn {
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  border: 1px solid rgba(29, 185, 84, 0.3);
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.2);
  white-space: nowrap;
}

.spotify-listen-btn:hover {
  background: linear-gradient(135deg, #1ed760 0%, #1DB954 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
  text-decoration: none;
  color: #fff;
}

.spotify-listen-btn:active {
  transform: translateY(0);
}

.spotify-listen-btn i {
  font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spotify-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .spotify-album-art {
    margin-bottom: 15px;
  }

  .spotify-info {
    width: 100%;
  }

  .spotify-controls {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .spotify-time {
    text-align: center;
  }
}

/* Animation for scan line */
@keyframes scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
