/* Add this to your NienaNetRework/style.css or create a separate recent-songs.css file */

/* Hero title styling for logged in users */
.hero h1.logged-in-title {
  font-size: 2.5rem; /* Smaller than the default 3.5rem */
  margin-bottom: 1.5rem; /* Reduced margin */
}

/* Recent Songs Component Styles */
.recent-songs-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.recent-songs-header {
  text-align: center;
  margin-bottom: 2rem;
}

.recent-songs-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #a56dff, #d100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recent-songs-subtitle {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

.recent-songs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recent-song-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(165, 109, 255, 0.15);
  border-color: rgba(165, 109, 255, 0.3);
}

.song-info {
  flex: 1;
  min-width: 0; /* Allows text truncation */
}

.song-title {
  font-weight: 600;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  color: #ccc;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.song-time {
  color: #999;
  font-size: 0.8rem;
  font-weight: 500;
}

.spotify-link {
  color: #1db954;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.1);
}

.spotify-link:hover {
  color: #1ed760;
  background: rgba(29, 185, 84, 0.2);
  transform: scale(1.1);
}

/* Empty State */
.recent-songs-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
}

.recent-songs-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.recent-songs-empty p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.recent-songs-empty small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Error State */
.recent-songs-error {
  text-align: center;
  padding: 2rem;
  color: #ff6b6b;
}

.recent-songs-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.recent-songs-error p {
  margin-bottom: 1rem;
  color: #ff6b6b;
}

.retry-btn {
  background: #a56dff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.retry-btn:hover {
  background: #8342f4;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .recent-songs-container {
    padding: 1rem;
  }

  .recent-song-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .song-meta {
    align-self: flex-end;
    gap: 0.75rem;
  }

  .song-title, .song-artist {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .recent-songs-header h3 {
    font-size: 1.5rem;
  }

  /* Mobile title adjustments */
  .hero h1.logged-in-title {
    font-size: 2rem; /* Even smaller on mobile */
  }
}

@media (max-width: 480px) {
  .recent-song-item {
    padding: 1rem;
  }

  .recent-songs-header h3 {
    font-size: 1.3rem;
  }

  .song-title {
    font-size: 0.95rem;
  }

  .song-artist {
    font-size: 0.8rem;
  }

  /* Mobile title adjustments */
  .hero h1.logged-in-title {
    font-size: 1.8rem; /* Smallest size for mobile */
    margin-bottom: 1rem;
  }
}