/* Custom animations and styling */

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

/* Animation classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

/* Prose styling for readability */
.prose {
  color: #e5e7eb;
  line-height: 1.6;
}

.prose h2 {
  color: #f9fafb;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: #f3f4f6;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: #fbbf24;
  font-weight: 600;
}

.prose a {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #f59e0b;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th {
  background: #1f2937;
  color: #fbbf24;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #374151;
}

.prose td {
  padding: 0.75rem;
  border: 1px solid #374151;
  background: #111827;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #fbbf24;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Gradient overlays */
.gradient-overlay {
  position: relative;
}

.gradient-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  pointer-events: none;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
}

/* Button glow effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  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;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Mobile bottom menu island */
.bottom-menu-island {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 2rem;
  padding: 0.5rem 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 40;
}

/* Trustpilot star styling */
.star-rating {
  color: #00b67a;
  font-size: 1.25rem;
}

/* Payment method icons */
.payment-icon {
  width: 80px;
  height: 60px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.payment-icon:hover {
  border-color: #fbbf24;
  transform: scale(1.05);
}

/* Game card styling */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 3 / 4;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

/* Sidebar styling */
.sidebar {
  transition: transform 0.3s ease;
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

/* Bonus calculator styling */
.calculator-island {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 2px solid #fbbf24;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #374151;
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #fbbf24;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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