/* ========================================
   LIQUID MORPHING PROGRESS BARS
   ======================================== */

.liquid-progress-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 20px 0;
  background: rgba(10, 10, 15, 0.6);
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 107, 53, 0.3);
  box-shadow: 
    inset 0 2px 10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 107, 53, 0.2);
}

.liquid-progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Liquid fill */
.liquid-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--neon-orange) 0%, 
    #ff8c5a 50%, 
    var(--neon-blue) 100%
  );
  transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
}

/* Wave animation using SVG */
.liquid-wave {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 Q150,90 300,60 T600,60 T900,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: liquidWave 3s linear infinite;
  opacity: 0.6;
}

@keyframes liquidWave {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Bubbles */
.liquid-bubble {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: bubbleRise 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes bubbleRise {
  0% {
    bottom: 0;
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
  50% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(20px) scale(1);
  }
}

/* Shimmer effect */
.liquid-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmerMove 2s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Glow pulse */
.liquid-progress-container.active {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      inset 0 2px 10px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 
      inset 0 2px 10px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(255, 107, 53, 0.6);
  }
}

/* Milestone markers */
.liquid-milestone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.liquid-milestone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.liquid-milestone.reached::before {
  background: var(--neon-orange);
  box-shadow: 0 0 15px var(--neon-orange);
  animation: milestonePulse 0.5s ease-out;
}

@keyframes milestonePulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Completion celebration */
.liquid-progress-container.complete .liquid-fill {
  background: linear-gradient(135deg, 
    #4ade80 0%, 
    #22c55e 50%, 
    #16a34a 100%
  );
  animation: completePulse 1s ease-in-out;
}

@keyframes completePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
  .liquid-progress-container {
    height: 50px;
  }
  
  .liquid-progress-label {
    font-size: 0.9rem;
  }
}
