/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.flex-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Alphabet filter */
.alphabet-filter {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-title {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
}

.alphabet-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.letter-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin: 0.25rem;
  border: none;
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.letter-btn:hover {
  background-color: #f3f4f6;
}

.letter-btn.active {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.letter-btn.disabled {
  opacity: 0.3;
  cursor: default;
}

.clear-filter-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.25rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #2563eb;
  cursor: pointer;
  transition: color 0.2s;
}

.clear-filter-btn:hover {
  color: #1d4ed8;
}

/* Most accessed songs component */
.most-accessed-songs {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.badge {
  background-color: #222;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Songs list */
.songs-list {
  display: flex;
  flex-direction: column;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #eaeaea;
  transition: background-color 0.2s;
}

.song-item:last-child {
  border-bottom: none;
}

.song-item:hover {
  background-color: #f9f9f9;
}

.song-number {
  width: 2rem;
  text-align: center;
  font-size: 1.25rem;
  color: #999;
  font-weight: 300;
}

.song-info {
  flex: 1;
  margin-left: 1.5rem;
  width: 100%;
}

.song-title {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
}

.verified-badge {
  display: inline-flex;
  margin-left: 0.5rem;
  color: #3b82f6;
  width: 1rem;
  height: 1rem;
}

.song-artist {
  font-size: 0.875rem;
  color: #666;
}

/* Version icons */
.song-versions {
  display: flex;
  gap: 0.5rem;
}

.version {
  cursor: pointer;
  transition: color 0.2s;
}

.version svg {
  width: 1.25rem;
  height: 1.25rem;
}

.acoustic,
.electric {
  color: #f59e0b;
}

.acoustic:hover,
.electric:hover {
  color: #d97706;
}

.sheet,
.chords,
.audio {
  color: #9ca3af;
}

.sheet:hover,
.chords:hover,
.audio:hover {
  color: #6b7280;
}

.empty-message {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .flex-container {
    flex-direction: row;
  }

  .alphabet-filter {
    flex-direction: column;
    flex-wrap: nowrap;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }

  .alphabet-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .letter-btn {
    margin: 0.125rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0.5rem;
  }

  .song-number {
    width: 1.5rem;
    font-size: 1rem;
  }

  .song-versions {
    gap: 0.25rem;
  }

  .version svg {
    width: 1rem;
    height: 1rem;
  }
}

