/* =========================================
   TEXT GRADIENT ANIMAT
   ========================================= */
.text-gradient {
    /* Am adăugat a 3-a culoare (cyan) pentru a se potrivi cu tema, apoi revine la auriu pentru loop */
    background: linear-gradient(to right, #f2ca50, #ffabf3, #00e5e5, #f2ca50);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-gradient {
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    to {
        background-position: 300% center;
    }
}

/* =========================================
   CADRU CINEMATIC (THE BEZEL)
   ========================================= */
.cinematic-frame {
    /* Margine sticlată, umbră interioară subtilă și umbră exterioară masivă */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 40px 100px -20px rgba(0, 0, 0, 0.9),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Pleacă de la o scală mai mică și se mărește la încărcare */
    transform: scale(0.96);
    animation: frameScaleIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes frameScaleIn {
    to {
        transform: scale(1);
    }
}

.radial-vignette {
    /* Întunecă marginile clipului, focusând lumina în centru */
    background: radial-gradient(circle at center, transparent 20%, rgba(2, 3, 5, 0.9) 100%);
}

.status-glow {
    box-shadow: 0 0 10px #f2ca50, 0 0 20px #f2ca50;
}

/* =========================================
   BUTON EROU (GLASS-GLOW)
   ========================================= */
.hero-btn {
    background: rgba(242, 202, 80, 0.05);
    color: #f2ca50;
    border: 1px solid rgba(242, 202, 80, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
    background: rgba(242, 202, 80, 0.15);
    box-shadow: 0 0 30px rgba(242, 202, 80, 0.2), inset 0 0 15px rgba(242, 202, 80, 0.1);
    border-color: rgba(242, 202, 80, 0.8);
    color: #fff; /* Se luminează la hover */
}

.hero-btn:hover::before {
    left: 150%;
}

/* =========================================
   ANIMAȚII DE INTRARE (FADE & SLIDE UP)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }
.delay-300 { animation-delay: 0.6s; }
.delay-500 { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SCROLL INDICATOR ANIMAT
   ========================================= */
.animate-scroll-line {
    animation: scrollLineDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLineDrop {
    0% { transform: translateY(-100%); opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* =========================================
   CUSTOM PLAYER ANIMATIONS
   ========================================= */

/* Floating Animation for the Glass Card */
.animate-float {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Fluid Waveform Animation */
@keyframes wave {
  0% { height: 15%; opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
  100% { height: 15%; opacity: 0.6; }
}

.bar {
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: bottom;
}

/* Staggered Delays for natural equalizer effect */
.bar:nth-child(1) { animation-delay: 0.0s; }
.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; }
.bar:nth-child(5) { animation-delay: 0.6s; }
.bar:nth-child(6) { animation-delay: 0.4s; }
.bar:nth-child(7) { animation-delay: 0.25s; }
.bar:nth-child(8) { animation-delay: 0.1s; }
.bar:nth-child(9) { animation-delay: 0.35s; }
.bar:nth-child(10) { animation-delay: 0.2s; }

/* =========================================
   CUSTOM PLAYER ANIMATIONS
   ========================================= */

.animate-float {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Fluid Waveform Animation */
@keyframes wave {
  0% { height: 15%; opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
  100% { height: 15%; opacity: 0.6; }
}

.bar {
  height: 15%; /* Dimensiunea implicită când e pe pauză */
  transform-origin: bottom;
  animation: wave 1.2s ease-in-out infinite;
  animation-play-state: paused; /* Default oprit */
  will-change: height;
}

/* Când playerul rulează, activăm state-ul */
#waveform-container.is-playing .bar {
  animation-play-state: running;
}

/* Staggered Delays for natural equalizer effect */
.bar:nth-child(1) { animation-delay: 0.0s; }
.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.45s; }
.bar:nth-child(5) { animation-delay: 0.6s; }
.bar:nth-child(6) { animation-delay: 0.4s; }
.bar:nth-child(7) { animation-delay: 0.25s; }
.bar:nth-child(8) { animation-delay: 0.1s; }
.bar:nth-child(9) { animation-delay: 0.35s; }
.bar:nth-child(10) { animation-delay: 0.2s; }

