/* Base styles for the Top40 website */

/* Custom Properties */
:root {
  --music-primary: #1DB954;  /* Spotify green */
  --music-secondary: #FF0000;  /* YouTube red */
  --music-tertiary: #ff7700;  /* SoundCloud orange */
  --music-dark: #121212;
  --music-light: #f8f9fa;
}

/* Document styling */
html {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

body {
  margin: 0;
  padding: 0;
}

/* Streaming icons */
.streaming-icon {
  font-size: 1.2em;
  transition: transform 0.2s ease, color 0.2s ease;
}

.streaming-icon:hover {
  transform: scale(1.2);
}

.youtube-icon {
  color: #FF0000;
}

.youtube-music-icon {
  color: #FF0000;
  position: relative;
}

.youtube-music-icon::after {
  content: 'Music';
  position: absolute;
  font-size: 0.45em;
  top: -0.5em;
  right: -2.5em;
  font-family: Arial, sans-serif;
  color: #666;
}

.soundcloud-icon {
  color: #ff7700;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-nav {
  background-color: #333;
  color: white;
}

.btn-nav:hover {
  background-color: #444;
}

/* Chart selector */
.chart-selector select {
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #4a5568;
  background-color: #4b5563;
  color: white;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.chart-selector select:focus {
  outline: 2px solid #1DB954;
  outline-offset: 2px;
  border-color: #1DB954;
}

.chart-selector select option {
  background-color: #4b5563;
  color: white;
}

@media (max-width: 640px) {
  .chart-selector select {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}