/* Estilos Personalizados - O Reino Mágico da Elisa */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@600;800;900&display=swap');

:root {
  --color-pink-primary: #ff479d;
  --color-pink-soft: #ff85c0;
  --color-pink-pastel: #ffe3f1;
  --color-purple-primary: #8a2be2;
  --color-purple-soft: #b15eff;
  --color-purple-dark: #3a0066;
  --color-gold: #ffcf25;
}

body {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  background: linear-gradient(135deg, #2a0845 0%, #64147d 35%, #ad1b80 70%, #ff529a 100%);
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 36px 0 rgba(138, 43, 226, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
}

.glass-card-pink {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(186, 85, 211, 0.3));
  backdrop-filter: blur(12px);
  border: 3px solid rgba(255, 192, 203, 0.5);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
  border-radius: 2rem;
}

/* Glowing Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px #ff479d, 0 0 50px #b15eff; }
  50% { box-shadow: 0 0 45px #ff85c0, 0 0 75px #e0aaff; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes rainbowBorder {
  0% { border-color: #ff479d; }
  33% { border-color: #b15eff; }
  66% { border-color: #ffcf25; }
  100% { border-color: #ff479d; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-twinkle {
  animation: twinkle 2s infinite ease-in-out;
}

.rainbow-border {
  animation: rainbowBorder 4s infinite linear;
}

/* Magic Cursor Particles */
.magic-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.2rem;
  user-select: none;
  animation: particleFade 1s forwards ease-out;
}

@keyframes particleFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100px) scale(0.2) rotate(180deg);
  }
}

/* Custom Magic Button */
.btn-magic {
  background: linear-gradient(45deg, #ff1493, #9400d3, #ff69b4);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.btn-magic:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 20, 147, 0.7), 0 0 20px rgba(255, 255, 255, 0.8);
}

.btn-magic:active {
  transform: scale(0.98) translateY(0);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Story Box Styles */
.story-text {
  font-size: 1.35rem;
  line-height: 1.8;
  color: #fff;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #3a0066;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff479d, #b15eff);
  border-radius: 6px;
}
