/* Styles personnalisés pour MysticOdyssey */

/* Animation personnalisée pour les particules */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
  }
}

/* Classe utilitaire pour l'animation flottante */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Classe utilitaire pour l'effet de lueur */
.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Styles pour les messages flash */
.flash-message {
  animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Amélioration des gradients violets personnalisés */
.bg-mystic-purple {
  background: linear-gradient(
    135deg,
    #3b0764 0%,
    #581c87 25%,
    #7c3aed 50%,
    #581c87 75%,
    #3b0764 100%
  );
}

.bg-mystic-gold {
  background: linear-gradient(
    135deg,
    #f59e0b 0%,
    #fbbf24 25%,
    #fcd34d 50%,
    #fbbf24 75%,
    #f59e0b 100%
  );
}

/* Effet de particules scintillantes */
.sparkle::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(250, 204, 21, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(250, 204, 21, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(250, 204, 21, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
  border-radius: inherit;
}

/* Style pour les bordures magiques */
.magic-border {
  position: relative;
  overflow: hidden;
}

.magic-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 204, 21, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.magic-border:hover::before {
  left: 100%;
}

/* Amélioration du scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #3b0764;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #fbbf24, #f59e0b);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #fcd34d, #fbbf24);
}

/* Styles pour les tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background: linear-gradient(135deg, #581c87, #3b0764);
  color: #fcd34d;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  border: 1px solid rgba(250, 204, 21, 0.3);
  font-size: 14px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Animation pour les éléments au scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Styles pour les cartes avec effet de profondeur */
.depth-card {
  box-shadow: 0 4px 6px -1px rgba(139, 69, 19, 0.1),
    0 2px 4px -1px rgba(139, 69, 19, 0.06);
  transition: all 0.3s ease;
}

.depth-card:hover {
  box-shadow: 0 20px 25px -5px rgba(139, 69, 19, 0.1),
    0 10px 10px -5px rgba(139, 69, 19, 0.04), 0 0 0 1px rgba(250, 204, 21, 0.2);
  transform: translateY(-2px);
}

/* Style pour les boutons avec effet de ripple */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}
