/**
 * VFX Stylesheet & One Piece Manga Theming
 * Micro-animations, screen-shake, equalizer, and badges
 */

/* ==================== SCREEN SHAKE ==================== */
.screen-shake {
  animation: shakeAnim 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeAnim {
  10%, 90% { transform: translate3d(-2px, 1px, 0); }
  20%, 80% { transform: translate3d(3px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 3px, 0); }
  40%, 60% { transform: translate3d(5px, -3px, 0); }
}

/* ==================== EQUALIZER DE AUDIO ==================== */
.audio-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: 4px;
}

.eq-bar {
  width: 3px;
  background: var(--gold-primary);
  border-radius: 1px;
  height: 3px;
  transition: height 0.15s ease;
}

.audio-active .eq-bar:nth-child(1) { animation: eqPulse 0.6s infinite ease-in-out alternate; }
.audio-active .eq-bar:nth-child(2) { animation: eqPulse 0.8s 0.2s infinite ease-in-out alternate; }
.audio-active .eq-bar:nth-child(3) { animation: eqPulse 0.5s 0.4s infinite ease-in-out alternate; }

@keyframes eqPulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==================== ONE PIECE "TO BE CONTINUED" BADGE ==================== */
.to-be-continued-wrap {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #fff;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  animation: tbcPulse 2s infinite ease-in-out alternate;
  z-index: 50;
}

.tbc-arrow {
  width: 0; 
  height: 0; 
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--gold-primary);
}

.tbc-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

@keyframes tbcPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(245, 176, 65, 0.4)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 15px rgba(245, 176, 65, 0.8)); }
}

/* ==================== SPEEDLINES MANGA EFFECT ==================== */
.speedlines-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mode-action .speedlines-overlay {
  opacity: 1;
}

/* ==================== DIAMOND GLINT ==================== */
.diamond-glint {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  box-shadow: 0 0 10px #fff, 0 0 20px var(--gold-primary);
  animation: glintRotate 2.5s infinite linear;
  pointer-events: none;
}

@keyframes glintRotate {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(90deg); opacity: 1; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
