/* 
 * fx.css — Cinematic Transitions and Visual Effects
 * Part of Phase 1 Infrastructure
 */

#battle-intro-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#intro-title-card {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: scale(1.2);
  filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}

#intro-title-card.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.intro-title-prefix {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

#intro-boss-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.2);
}

.intro-title-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 1rem auto;
  transition: width 1.2s ease-out 0.2s;
}

#intro-title-card.visible .intro-title-line {
  width: 80%;
}

/* Specific Boss Themes */
.theme--guardian #intro-boss-name {
  color: #a5f3fc;
  text-shadow: 0 0 20px rgba(165,243,252,0.8);
}

.theme--demon-lord #intro-boss-name {
  color: #f97316;
  text-shadow: 0 0 20px rgba(249,115,22,0.8), 0 0 40px rgba(239,68,68,0.4);
}

.theme--king-galdor #intro-boss-name {
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,0.8);
}

.theme--void-knight #intro-boss-name {
  color: #c084fc;
  text-shadow: 0 0 20px rgba(192,132,252,0.8), 0 0 40px rgba(139,92,246,0.5);
}

@keyframes null-invert {
  0% { filter: invert(0); }
  20% { filter: invert(1) hue-rotate(180deg); }
  80% { filter: invert(1) hue-rotate(180deg); }
  100% { filter: invert(0); }
}

.theme--void-knight-active {
  animation: null-invert 2s ease-in-out forwards;
}
