/* Soundly Music Streaming Service Styles */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

/* Navigation styles */
.nav-link {
  position: relative;
  transition: all 0.2s ease;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

/* Sidebar styles */
.sidebar-link {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(55, 65, 81, 0.5);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
}

/* Card hover effects */
.song-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Music player styles */
#music-player {
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

#player-progress {
  transition: width 0.1s ease;
}

#player-volume {
  transition: width 0.1s ease;
}

/* Button hover effects */
button:hover {
  transform: scale(1.05);
}

#player-play:hover {
  transform: scale(1.1);
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass-effect {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Notification styles */
.notification {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Search input styles */
input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
}

/* Custom utilities */
.blur-backdrop {
  backdrop-filter: blur(8px);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progress bar interactive styles */
.progress-container:hover .progress-bar {
  height: 6px;
}

.progress-bar {
  height: 4px;
  transition: height 0.2s ease;
}

/* Volume control interactive styles */
.volume-container:hover .volume-bar {
  height: 6px;
}

.volume-bar {
  height: 4px;
  transition: height 0.2s ease;
}

/* Artist card styles */
.artist-card:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Playlist card styles */
.playlist-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(55, 65, 81, 0.8));
  border: 1px solid rgba(75, 85, 99, 0.2);
  transition: all 0.3s ease;
}

.playlist-card:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Song item hover states */
.song-row {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.song-row:hover {
  background: rgba(55, 65, 81, 0.5);
}

.song-row:hover .play-button {
  opacity: 1;
  transform: scale(1);
}

.play-button {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
  #music-player {
    flex-direction: column;
    padding: 1rem;
    height: auto;
  }
  
  #music-player > div {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  #music-player > div:last-child {
    margin-bottom: 0;
    justify-content: center;
  }
}

/* Dark theme enhancements */
.dark-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9));
  border: 1px solid rgba(75, 85, 99, 0.2);
  backdrop-filter: blur(10px);
}

.dark-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(109, 40, 217, 0.05));
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}