/* ==========================================================================
   GenoFun - Fun & Kitsch Mode Styles
   ========================================================================== */

/* Fun Mode Active Theme adjustments */
body.fun-mode {
  --accent-primary: #ec4899;
  --accent-hover: #db2777;
  --accent-glow: rgba(236, 72, 153, 0.4);
}

body.fun-mode .brand-icon {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #ec4899 100%);
  animation: gentle-wobble 4s ease-in-out infinite;
}

@keyframes gentle-wobble {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg) scale(1.05); }
}

/* Sparkles on canvas when fun mode is enabled */
body.fun-mode .canvas-viewport::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Humorous Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  user-select: none;
}

.role-badge.lieblingskind {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.4);
}

.role-badge.schwarzes-schaf {
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 1px 4px rgba(51, 65, 85, 0.4);
}

.role-badge.familienchef {
  background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
  color: #1e3a8a;
}

.role-badge.familienoma {
  background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
  color: #831843;
}

.role-badge.chaosgenerator {
  background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
  color: #ffffff;
  animation: pulse-chaos 2s infinite;
}

@keyframes pulse-chaos {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.role-badge.friedensstifter {
  background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
  color: #14532d;
}

.role-badge.lieblingsonkel {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
  color: #7c2d12;
}

.role-badge.drama-queen {
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
  color: #581c87;
  font-style: italic;
}

/* Fun Mode SVG Nodes embellishments */
body.fun-mode .geno-node:hover .node-shape {
  filter: drop-shadow(0 0 10px var(--fun-glow));
}

body.fun-mode .rel-path.love {
  stroke: #ec4899 !important;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.5));
}

body.fun-mode .rel-path.conflict {
  stroke: #ef4444 !important;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}

/* Kitschy relationship text banner */
.kitsch-banner {
  background: var(--fun-light);
  border: 1px dashed var(--fun-primary);
  color: var(--fun-primary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* Easter Egg confetti animation */
.confetti-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 2px;
  animation: fall 2.5s ease-out forwards;
}

@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}
