/* Live Music & Shows – hover FX pe carduri */

.live-card__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

/* Card 1 – sunet: puls central + inele */
.live-card__fx--sound {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.live-card--fx-sound:hover .live-card__fx--sound,
.live-card--fx-sound:focus-within .live-card__fx--sound {
  opacity: 1;
}

.live-sound-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.live-sound-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(251, 176, 64, 0.85) 28%,
    rgba(39, 170, 225, 0.55) 62%,
    rgba(218, 28, 92, 0.25) 100%
  );
  box-shadow:
    0 0 24px rgba(251, 176, 64, 0.75),
    0 0 48px rgba(39, 170, 225, 0.45),
    0 0 72px rgba(218, 28, 92, 0.25);
  opacity: 0.35;
  transform: scale(0.7);
}

.live-card--fx-sound:hover .live-sound-core,
.live-card--fx-sound:focus-within .live-sound-core {
  animation: liveSoundCorePulse 1.1s ease-in-out infinite;
}

.live-sound-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: scale(0.35);
}

.live-card--fx-sound:hover .live-sound-ring,
.live-card--fx-sound:focus-within .live-sound-ring {
  animation: liveSoundRingExpand 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: calc(var(--ring-i) * 0.38s);
}

@keyframes liveSoundCorePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes liveSoundRingExpand {
  0% {
    opacity: 0.75;
    transform: scale(0.4);
    border-color: rgba(251, 176, 64, 0.85);
  }
  70% {
    opacity: 0.15;
    transform: scale(2.8);
    border-color: rgba(39, 170, 225, 0.35);
  }
  100% {
    opacity: 0;
    transform: scale(3.2);
    border-color: rgba(218, 28, 92, 0.1);
  }
}

/* Card 2 – confetti (piese generate din JS) */
.live-card__fx--confetti {
  inset: 0;
}

.live-confetti-piece {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 7px;
  height: 11px;
  margin-left: -3px;
  border-radius: 1px;
  opacity: 0;
  animation: liveConfettiShoot 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes liveConfettiShoot {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
  }
}

/* Card 3 – proiecții haotice de lumini */
.live-card__fx--lights {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.live-card--fx-lights:hover .live-card__fx--lights,
.live-card--fx-lights:focus-within .live-card__fx--lights,
.live-card--fx-lights.live-card--lights-active .live-card__fx--lights {
  opacity: 0.74;
}

.live-light-beam {
  position: absolute;
  left: var(--beam-x);
  top: var(--beam-y);
  width: 5rem;
  height: 5rem;
  margin: -2.5rem 0 0 -2.5rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.live-light-beam--hue-0 { background: rgba(251, 176, 64, 0.58); }
.live-light-beam--hue-1 { background: rgba(218, 28, 92, 0.5); }
.live-light-beam--hue-2 { background: rgba(39, 170, 225, 0.55); }
.live-light-beam--hue-3 { background: rgba(141, 198, 63, 0.52); }
.live-light-beam--hue-4 { background: rgba(243, 115, 33, 0.5); }

.live-card--fx-lights:hover .live-light-beam,
.live-card--fx-lights:focus-within .live-light-beam,
.live-card--fx-lights.live-card--lights-active .live-light-beam {
  animation: liveLightBeamDrift var(--beam-dur) ease-in-out infinite;
  animation-delay: var(--beam-delay);
}

.live-led-grid {
  position: absolute;
  inset: 5% 4%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  align-items: center;
  justify-items: center;
}

.live-led-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0.28;
  transform: scale(1);
  filter: blur(0.5px);
  transition:
    opacity 0.07s ease,
    transform 0.07s ease,
    background 0.07s ease,
    box-shadow 0.07s ease,
    filter 0.07s ease;
}

.live-led-dot--hue-0 { --led-color: #fbbf24; }
.live-led-dot--hue-1 { --led-color: #ec4899; }
.live-led-dot--hue-2 { --led-color: #27aae1; }
.live-led-dot--hue-3 { --led-color: #8dc63f; }
.live-led-dot--hue-4 { --led-color: #f37321; }
.live-led-dot--hue-5 { --led-color: #ffffff; }

.live-card--fx-lights:hover .live-led-dot,
.live-card--fx-lights:focus-within .live-led-dot,
.live-card--fx-lights.live-card--lights-active .live-led-dot {
  opacity: 0.34;
}

.live-led-dot.is-lit {
  opacity: 0.72 !important;
  transform: scale(1.35);
  filter: blur(1.5px);
  background: rgba(255, 255, 255, 0.18) !important;
  background: color-mix(in srgb, var(--led-color, #fbbf24) 72%, transparent) !important;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 8px color-mix(in srgb, var(--led-color, #fbbf24) 50%, transparent),
    0 0 18px color-mix(in srgb, var(--led-color, #fbbf24) 28%, transparent);
}

@keyframes liveLightBeamDrift {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  18% {
    opacity: 0.52;
    transform: translate(12px, -18px) scale(1.15);
  }
  42% {
    opacity: 0.24;
    transform: translate(-20px, 8px) scale(0.9);
  }
  68% {
    opacity: 0.46;
    transform: translate(8px, 22px) scale(1.05);
  }
}

/* Food & Drinks – hover FX pe carduri */
.live-card__fx--food-bubbles,
.live-card__fx--food-fizz,
.live-card__fx--food-steam {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.live-card--fx-food-bubbles:hover .live-card__fx--food-bubbles,
.live-card--fx-food-bubbles:focus-within .live-card__fx--food-bubbles,
.live-card--fx-food-fizz:hover .live-card__fx--food-fizz,
.live-card--fx-food-fizz:focus-within .live-card__fx--food-fizz,
.live-card--fx-food-steam:hover .live-card__fx--food-steam,
.live-card--fx-food-steam:focus-within .live-card__fx--food-steam {
  opacity: 1;
}

.food-bubble {
  position: absolute;
  left: var(--bubble-x);
  bottom: 18%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 10px rgba(251, 176, 64, 0.45);
  opacity: 0;
  transform: translateY(0) scale(0.6);
}

.live-card--fx-food-bubbles:hover .food-bubble,
.live-card--fx-food-bubbles:focus-within .food-bubble {
  animation: foodBubbleRise var(--bubble-dur, 1.8s) ease-in infinite;
  animation-delay: var(--bubble-delay, 0s);
}

@keyframes foodBubbleRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-95px) scale(1.1);
  }
}

.food-fizz-piece {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  opacity: 0;
  animation: foodFizzPop 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes foodFizzPop {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}

.food-steam {
  position: absolute;
  left: var(--steam-x);
  bottom: 22%;
  width: 14px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  filter: blur(3px);
  opacity: 0;
  transform: translateY(0) scaleX(0.8);
}

.live-card--fx-food-steam:hover .food-steam,
.live-card--fx-food-steam:focus-within .food-steam {
  animation: foodSteamRise 2.1s ease-out infinite;
  animation-delay: var(--steam-delay, 0s);
}

@keyframes foodSteamRise {
  0% {
    opacity: 0;
    transform: translateY(8px) scaleX(0.7);
  }
  25% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-72px) scaleX(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-sound-core,
  .live-sound-ring,
  .live-light-beam,
  .live-confetti-piece,
  .food-bubble,
  .food-fizz-piece,
  .food-steam {
    animation: none !important;
  }
  .live-card__fx--sound,
  .live-card__fx--lights,
  .live-card__fx--food-bubbles,
  .live-card__fx--food-fizz,
  .live-card__fx--food-steam {
    opacity: 0 !important;
  }
  .live-led-dot.is-lit {
    opacity: 0 !important;
  }
}

@media (max-width: 640px) {
  .live-led-dot {
    width: 6px;
    height: 6px;
  }
}
