/* Custom Animations and Styles for AvailFox */

:root {
  --primary: #8B5CF6;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --darkbg: #0F172A;
  --cardbg: #1E293B;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Game cards hover effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

/* FAQ Accordion */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Particles canvas */
#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Responsible gaming bar animation */
#responsibleBar.show {
  transform: translateY(0);
}

/* Loading animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card animations on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darkbg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7C3AED;
}

/* Table hover effects */
table tbody tr {
  transition: background-color 0.2s ease;
}

/* 3D Roulette container */
#roulette3D canvas {
  border-radius: 15px;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .game-card {
    margin-bottom: 1rem;
  }
  
  .faq-item {
    margin-bottom: 0.5rem;
  }
}
