/* ============================================
   Shared Styles — The Iroko Circle
   ============================================ */

/* Keyframe Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatRandom {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 20px) rotate(270deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation Utility Classes */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-random {
  animation: floatRandom 20s infinite ease-in-out;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-out;
}

/* ============================================
   Question Card Carousel
   ============================================ */
.question-card {
  position: absolute;
  width: 600px;
  max-width: 90%;
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem;
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.question-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
  pointer-events: auto;
}

.question-card.prev {
  opacity: 0.3;
  transform: translateX(-120%) scale(0.8);
  filter: blur(4px);
  z-index: 0;
}

.question-card.next {
  opacity: 0.3;
  transform: translateX(120%) scale(0.8);
  filter: blur(4px);
  z-index: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .question-card {
    padding: 2rem;
    width: 90%;
  }
}
