/* ══════════════════════════════════════════════════════════
   EFFECTS & THEMES CSS
══════════════════════════════════════════════════════════ */

/* --- THÈME : Néon Party --- */
body.theme-neon-party {
  background: radial-gradient(circle at center, #1b0a2a, #000) !important;
}
body.theme-neon-party .screen {
  background: transparent !important;
}
body.theme-neon-party .card {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 0, 255, 0.6) !important;
}
body.theme-neon-party .card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
body.theme-neon-party .card:hover::before {
  opacity: 1;
}

/* --- THÈME : Manga Shonen --- */
body.theme-manga-shonen {
  background-color: #f7f7f7 !important;
  background-image: repeating-linear-gradient(
    45deg,
    #e0e0e0 0px,
    #e0e0e0 2px,
    transparent 2px,
    transparent 10px
  ) !important;
}
body.theme-manga-shonen .screen {
  background: transparent !important;
}
body.theme-manga-shonen .card {
  border: 3px solid #000 !important;
  box-shadow: 6px 6px 0px #000 !important;
  border-radius: 4px !important;
}
body.theme-manga-shonen .card-val {
  font-family: 'Boogaloo', Arial, sans-serif !important;
  text-shadow: 2px 2px 0px #000, -1px -1px 0 #000 !important;
  font-style: italic !important;
}

/* --- EFFET : TOMATE (SABOTAGE) --- */

.tomato-splat {
  position: fixed;
  z-index: 9999;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background-image: radial-gradient(circle, #e74c3c 30%, transparent 70%);
  border-radius: 50%;
  animation: tomatoHit 0.5s ease-out forwards, tomatoDrip 4s linear 0.5s forwards;
  filter: drop-shadow(0 0 10px rgba(231,76,60,0.8));
}

.tomato-splat::after {
  content: "🍅";
  font-size: 80px;
  position: absolute;
  top: 35px;
  left: 35px;
  animation: tomatoFade 0.2s forwards 0.1s;
}

@keyframes tomatoHit {
  0% { transform: scale(10) translate(50px, -50px); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes tomatoFade {
  to { opacity: 0; transform: scale(3); }
}

@keyframes tomatoDrip {
  0% { transform: translateY(0) scaleY(1); opacity: 0.9; }
  100% { transform: translateY(150px) scaleY(2); opacity: 0; }
}

/* --- EFFET : ECLIPSE (SABOTAGE) --- */
.eclipse-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 8000;
  pointer-events: none;
  background: radial-gradient(circle 60px at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0,0,0,0.98) 120px);
  animation: eclipseIn 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes eclipseIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- EFFET : BROUILLARD (SABOTAGE) --- */
.fog-overlay {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%);
  filter: blur(15px);
  z-index: 50;
  pointer-events: none;
  animation: fogDrift 10s infinite alternate linear, fogFadeIn 0.5s forwards;
  border-radius: 50%;
}

@keyframes fogFadeIn { from{ opacity:0;} to{ opacity:1;} }
@keyframes fogFadeOut { to{ opacity:0;} }
@keyframes fogDrift {
  0% { transform: translate(-20px, -10px) scale(1); }
  100% { transform: translate(20px, 10px) scale(1.1); }
}

/* --- EFFET : MIROIR (SABOTAGE) --- */
.mirror-effect .card {
  transform: scaleX(-1) !important;
}

/* --- EFFET : MOUCHES (SABOTAGE) --- */
.fly-emoji {
  position: fixed;
  font-size: 24px;
  z-index: 9999;
  pointer-events: none;
  animation: flyPattern 6s infinite linear;
}
@keyframes flyPattern {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(50px, -50px) scale(1.2) rotate(45deg); }
  50% { transform: translate(100px, 0) scale(1) rotate(90deg); }
  75% { transform: translate(50px, 50px) scale(0.8) rotate(135deg); }
  100% { transform: translate(0, 0) scale(1) rotate(180deg); }
}

/* --- NOUVEAUX THEMES --- */
/* Dragon de Feu */
body.theme-dragon-fire {
  background: radial-gradient(circle at bottom, #8e0000, #1a0000 80%) !important;
}
body.theme-dragon-fire .screen {
  background: transparent !important;
}
body.theme-dragon-fire .card {
  border: 1px solid #ff4d4d !important;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5) !important;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0, rgba(0,0,0,0.1) 2px, transparent 2px, transparent 10px) !important;
}
body.theme-dragon-fire .card-val { text-shadow: 0 0 5px #ff9900 !important; }

/* Glaces & Sorbets */
body.theme-ice-cream {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%) !important;
}
body.theme-ice-cream .screen {
  background: transparent !important;
}
body.theme-ice-cream .card {
  border-radius: 20px !important;
  border: 2px solid #fff !important;
  box-shadow: 4px 4px 0 #fff !important;
}
body.theme-ice-cream .card-val { font-family: 'Comic Sans MS', cursive, sans-serif !important; }

