/* ===== SPOTIFY COLORS - IDENTICAS ===== */
:root {
  --spotify-green: #1db954;
  --spotify-green-hover: #1ed760;
  --spotify-black: #191414;
  --spotify-dark: #121212;
  --spotify-gray-dark: #282828;
  --spotify-gray: #b3b3b3;
  --spotify-gray-light: #e5e5e5;
  --spotify-white: #ffffff;
  --spotify-text-secondary: #a7a7a7;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  background: var(--spotify-dark);
  color: var(--spotify-white);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background: var(--spotify-black);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--spotify-white);
}

.live-badge {
  background: var(--spotify-green);
  color: var(--spotify-white);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--spotify-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--spotify-green);
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: 80px;
  padding-bottom: 2rem;
}

/* ===== LIVE STATUS ===== */
.live-status {
  background: linear-gradient(135deg, var(--spotify-black) 0%, var(--spotify-gray-dark) 100%);
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.live-banner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.live-info h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--spotify-green);
}

.live-info h1 i {
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

#liveLocation {
  color: var(--spotify-gray);
  margin-bottom: 1.5rem;
}

.live-stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
  background: var(--spotify-gray-dark);
  padding: 1rem;
  border-radius: 12px;
  flex: 1;
}

.stat i {
  color: var(--spotify-green);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--spotify-white);
  display: block;
}

.stat small {
  color: var(--spotify-gray);
  font-size: 0.8rem;
}

.qr-code-section {
  background: var(--spotify-gray-dark);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.qr-code {
  width: 80px;
  height: 80px;
  background: var(--spotify-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.qr-code i {
  font-size: 2rem;
  color: var(--spotify-black);
}

/* ===== CURRENT SONG ===== */
.current-song {
  background: var(--spotify-gray-dark);
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.now-playing {
  text-align: center;
}

.audio-bars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1rem;
}

.audio-bars span {
  width: 4px;
  height: 20px;
  background: var(--spotify-green);
  border-radius: 2px;
  animation: audioWave 1.5s ease-in-out infinite;
}

.audio-bars span:nth-child(2) { animation-delay: 0.1s; }
.audio-bars span:nth-child(3) { animation-delay: 0.2s; }
.audio-bars span:nth-child(4) { animation-delay: 0.3s; }
.audio-bars span:nth-child(5) { animation-delay: 0.4s; }

.song-title-animated {
  color: var(--spotify-green);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#currentSong {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#currentGenre {
  color: var(--spotify-gray);
  margin-bottom: 0.3rem;
}

#currentRequester {
  color: var(--spotify-text-secondary);
  font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
.repertorio-popular,
.next-songs,
.public-interaction {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--spotify-gray);
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--spotify-green);
  color: var(--spotify-white);
}

.btn-primary:hover {
  background: var(--spotify-green-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--spotify-gray);
  border: 1px solid var(--spotify-gray);
}

.btn-secondary:hover {
  background: var(--spotify-gray-dark);
  color: var(--spotify-white);
}

/* ===== REPERTÓRIO POPULAR ===== */
.repertorio-popular {
  background: var(--spotify-dark);
  padding: 2rem 0;
}

/* Filtros Musicais */
.filtros-musicais {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.filtro-btn {
  padding: 0.6rem 1.2rem;
  background: var(--spotify-gray-dark);
  color: var(--spotify-gray);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filtro-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.2), transparent);
  transition: left 0.5s ease;
}

.filtro-btn:hover::before {
  left: 100%;
}

.filtro-btn.active,
.filtro-btn:hover {
  background: var(--spotify-green);
  color: var(--spotify-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

/* Grid do Repertório */
.repertorio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* Card de Música */
.music-card {
  background: var(--spotify-gray-dark);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spotify-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.music-card:hover {
  background: var(--spotify-black);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--spotify-green);
}

.music-card:hover::before {
  transform: scaleX(1);
}

.music-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.music-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--spotify-white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.music-info p {
  color: var(--spotify-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.music-genre {
  background: var(--spotify-green);
  color: var(--spotify-white);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.music-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--spotify-black);
}

.music-popularity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popularity-bar {
  width: 60px;
  height: 4px;
  background: var(--spotify-black);
  border-radius: 2px;
  overflow: hidden;
}

.popularity-fill {
  height: 100%;
  background: var(--spotify-green);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.music-actions {
  display: flex;
  gap: 0.5rem;
}

.action-icon {
  width: 32px;
  height: 32px;
  background: var(--spotify-black);
  border: none;
  border-radius: 50%;
  color: var(--spotify-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon:hover {
  background: var(--spotify-green);
  color: var(--spotify-white);
  transform: scale(1.1);
}

.play-icon {
  background: var(--spotify-green) !important;
  color: var(--spotify-white) !important;
}

.play-icon:hover {
  background: var(--spotify-green-hover) !important;
  transform: scale(1.2);
}

/* Loading State Melhorado */
.repertorio-loading {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--spotify-gray-dark) 0%, var(--spotify-black) 100%);
  border-radius: 20px;
  margin: 2rem 1rem;
  border: 1px solid var(--spotify-green);
  position: relative;
  overflow: hidden;
}

.repertorio-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.1), transparent);
  animation: shimmer 2s infinite;
}

.repertorio-loading i {
  font-size: 4rem;
  color: var(--spotify-green);
  margin-bottom: 1.5rem;
  animation: musicPulse 2s ease-in-out infinite;
}

.repertorio-loading h2 {
  margin-bottom: 0.8rem;
  color: var(--spotify-white);
  font-size: 1.3rem;
}

.repertorio-loading p {
  color: var(--spotify-gray);
  font-size: 1rem;
  line-height: 1.5;
}

/* Actions do Repertório */
.repertorio-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.repertorio-actions .btn {
  min-width: 150px;
  justify-content: center;
}

/* Animações Específicas */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes musicPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Estados Especiais */
.music-card.playing {
  border-color: var(--spotify-green);
  background: linear-gradient(135deg, var(--spotify-gray-dark) 0%, rgba(29, 185, 84, 0.1) 100%);
}

.music-card.playing::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--spotify-green), var(--spotify-green-hover));
}

.music-card.requested {
  border-color: #ffd700;
  position: relative;
}

.music-card.requested::after {
  content: '🎵';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== PRÓXIMAS MÚSICAS ===== */
.next-songs {
  background: var(--spotify-dark);
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.queue-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.queue-header p {
  color: var(--spotify-gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.queue-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.queue-stats .stat {
  background: var(--spotify-gray-dark);
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  color: var(--spotify-gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.queue-stats .stat i {
  color: var(--spotify-green);
}

.queue-stats .stat strong {
  color: var(--spotify-white);
}

/* Lista da Fila */
.queue-list {
  padding: 0 1rem;
}

.queue-item {
  background: var(--spotify-gray-dark);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.queue-item:hover {
  background: var(--spotify-black);
  border-left-color: var(--spotify-green);
  transform: translateX(5px);
}

.queue-position {
  background: var(--spotify-green);
  color: var(--spotify-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.queue-song-info {
  flex: 1;
}

.queue-song-info h4 {
  color: var(--spotify-white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.queue-song-info p {
  color: var(--spotify-gray);
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.queue-song-info small {
  color: var(--spotify-text-secondary);
  font-size: 0.7rem;
}

.queue-time {
  color: var(--spotify-gray);
  font-size: 0.8rem;
  text-align: right;
}

/* Estado de Fila Vazia */
.empty-queue {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--spotify-gray-dark) 0%, var(--spotify-black) 100%);
  border-radius: 20px;
  margin: 1rem;
  border: 2px dashed var(--spotify-green);
  position: relative;
  overflow: hidden;
}

.empty-queue::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.05), transparent);
  animation: shimmer 3s infinite;
}

.empty-queue i {
  font-size: 4rem;
  color: var(--spotify-green);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.empty-queue h3 {
  color: var(--spotify-white);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.empty-queue p {
  color: var(--spotify-gray);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.empty-queue .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ===== INTERAÇÃO DO PÚBLICO ===== */
.public-interaction {
  background: var(--spotify-dark);
  padding: 2rem 0;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
  margin-top: 2rem;
}

.interaction-card {
  background: var(--spotify-gray-dark);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.interaction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--spotify-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.interaction-card:hover {
  background: var(--spotify-black);
  border-color: var(--spotify-green);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(29, 185, 84, 0.2);
}

.interaction-card:hover::before {
  transform: scaleX(1);
}

.interaction-card i {
  font-size: 3rem;
  color: var(--spotify-green);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.interaction-card:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(29, 185, 84, 0.3));
}

.interaction-card h3 {
  color: var(--spotify-white);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.interaction-card p {
  color: var(--spotify-gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--spotify-green);
  color: var(--spotify-green);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--spotify-green);
  color: var(--spotify-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

/* Botões de Compartilhamento */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.share-btn {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  color: var(--spotify-white);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.whatsapp:hover {
  background: #20b954;
  transform: translateY(-2px);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

.share-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.instagram:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-btn.copy {
  background: var(--spotify-gray-dark);
  border: 1px solid var(--spotify-gray);
}

.share-btn.copy:hover {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  transform: translateY(-2px);
}

/* Animações Adicionais */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsividade para Interações */
@media (max-width: 768px) {
  .interaction-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .interaction-card {
    padding: 1.5rem 1rem;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
  }
  
  .empty-queue {
    padding: 3rem 1.5rem;
  }
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--spotify-gray-dark);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--spotify-black);
}

.modal-header h3 {
  color: var(--spotify-white);
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--spotify-gray);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--spotify-black);
  color: var(--spotify-white);
}

.modal-body {
  padding: 1.5rem;
}

.modal-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--spotify-white);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--spotify-black);
  border: 1px solid var(--spotify-gray-dark);
  border-radius: 8px;
  color: var(--spotify-white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--spotify-green);
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--spotify-black);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer-info h3 {
  color: var(--spotify-green);
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: var(--spotify-gray);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--spotify-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--spotify-green);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--spotify-gray-dark);
}

.footer-bottom p {
  color: var(--spotify-text-secondary);
  font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes audioWave {
  0%, 100% { height: 20px; }
  50% { height: 35px; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 2rem;
  }
  
  .live-banner {
    flex-direction: row;
    text-align: left;
  }
  
  .live-info {
    flex: 1;
  }
  
  .qr-code-section {
    max-width: 200px;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
  
  .nav-menu {
    gap: 2rem;
  }
  
  .live-stats {
    gap: 2rem;
  }
}
