/* =============================================================================
   SHEAR MADNESS - CUTSCENE STYLES
   ============================================================================= */

/* =============================================================================
   SPEECH BUBBLES
   ============================================================================= */

.cutscene-bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.cutscene-bubble {
  position: absolute;
  max-width: 400px;
  min-width: 200px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(20, 20, 25, 0.95));
  border: 2px solid #4a9eff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(74, 158, 255, 0.2);
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cutscene-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cutscene-bubble.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

.cutscene-bubble .bubble-name {
  font-size: 0.75rem;
  font-weight: bold;
  color: #4a9eff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cutscene-bubble .bubble-text {
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
}

.cutscene-bubble .bubble-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #4a9eff;
}

/* Character-specific colors */
.cutscene-bubble.jax {
  border-color: #ff6b9d;
}
.cutscene-bubble.jax .bubble-name {
  color: #ff6b9d;
}
.cutscene-bubble.jax .bubble-arrow {
  border-top-color: #ff6b9d;
}

.cutscene-bubble.shannon {
  border-color: #9b59b6;
}
.cutscene-bubble.shannon .bubble-name {
  color: #9b59b6;
}
.cutscene-bubble.shannon .bubble-arrow {
  border-top-color: #9b59b6;
}

/* =============================================================================
   FLOATING WEAPON PICKUPS
   ============================================================================= */

.floating-weapon-pickup {
  position: absolute;
  font-size: 2.5rem;
  z-index: 200;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))
          drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
  animation: weaponFloat 2s ease-in-out infinite;
  pointer-events: none;
}

.floating-weapon-pickup.visible {
  opacity: 1;
}

.floating-weapon-pickup.picked-up {
  animation: weaponGrab 0.4s ease-out forwards;
}

@keyframes weaponFloat {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 12px));
  }
}

@keyframes weaponGrab {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(0.5);
  }
}

/* Pickup notification */
.weapon-pickup-notification {
  position: absolute;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9),
               0 0 20px rgba(255, 215, 0, 0.5);
  z-index: 250;
  animation: pickupNotify 1.5s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes pickupNotify {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1);
  }
  70% {
    opacity: 1;
    transform: translateY(-35px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
}

/* =============================================================================
   EQUIPPED DISPLAY
   ============================================================================= */

.equipped-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(40, 40, 45, 0.95), rgba(25, 25, 30, 0.95));
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 12px 18px;
  z-index: 350;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5),
              0 0 35px rgba(255, 215, 0, 0.15);
}

.equipped-display.visible {
  opacity: 1;
  transform: translateY(0);
}

.equipped-header {
  font-size: 0.75rem;
  font-weight: bold;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-align: center;
}

.equipped-weapons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.eq-weapon {
  font-size: 2rem;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  animation: equipPulse 2s ease-in-out infinite;
}

@keyframes equipPulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  }
}

/* =============================================================================
   ARCHERY TARGET
   ============================================================================= */

.cutscene-archery-target {
  position: absolute;
  font-size: 2.5rem;
  z-index: 150;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.cutscene-archery-target.visible {
  opacity: 1;
}

.cutscene-archery-target.hiding {
  opacity: 0;
}

.cutscene-archery-target.hit {
  animation: targetHit 0.2s ease-out;
}

@keyframes targetHit {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    filter: brightness(1.5);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Arrow projectile */
.cutscene-arrow {
  position: absolute;
  font-size: 1.5rem;
  z-index: 160;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* =============================================================================
   ROSE LABELS
   ============================================================================= */

.cutscene-rose-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(50, 80, 50, 0.95), rgba(30, 60, 30, 0.95));
  border: 1px solid rgba(100, 200, 100, 0.5);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
  z-index: 100;
  animation: labelAppear 0.3s ease-out;
}

.cutscene-rose-label.fade-out {
  animation: labelFade 0.4s ease-out forwards;
}

@keyframes labelAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes labelFade {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

.cutscene-rose-label .rose-species {
  font-size: 0.8rem;
  font-style: italic;
  color: #90ee90;
}

.cutscene-rose-label .rose-common {
  font-size: 0.7rem;
  color: #ccc;
  margin-top: 2px;
}

.entity.labeled {
  filter: brightness(1.2);
}

/* =============================================================================
   FADE OVERLAY
   ============================================================================= */

.cutscene-fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 2000;
  pointer-events: none;
}
