/**
 * Loading Animation Styles
 * Elegant, music-themed loading animation
 */

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 24, 37, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loader-container.active {
  opacity: 1;
  visibility: visible;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.loader-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--gold);
  animation: spin 2s linear infinite;
}

.loader-circle:nth-child(2) {
  border: 4px solid transparent;
  border-bottom-color: var(--gold);
  animation: spin 2s linear infinite reverse;
}

.loader-circle:nth-child(3) {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 20px;
  border-top-color: var(--gold-light);
  animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(4) {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 20px;
  border-bottom-color: var(--gold-light);
  animation: spin 1.5s linear infinite reverse;
}

.loader-text {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.loader-notes {
  display: flex;
  margin-top: 1rem;
}

.note {
  color: var(--gold);
  font-size: 24px;
  margin: 0 8px;
  animation: bounce 1.2s infinite ease-in-out;
}

.note:nth-child(1) { animation-delay: 0s; }
.note:nth-child(2) { animation-delay: 0.2s; }
.note:nth-child(3) { animation-delay: 0.4s; }
.note:nth-child(4) { animation-delay: 0.6s; }
.note:nth-child(5) { animation-delay: 0.8s; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.progress-bar-container {
  width: 300px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease;
  animation: progress 8s forwards;
}

@keyframes progress {
  0% { width: 0%; }
  20% { width: 20%; }
  40% { width: 40%; }
  60% { width: 65%; }
  80% { width: 85%; }
  95% { width: 95%; }
  100% { width: 98%; }
}
