/* Gambana - Gamba Nova Flow Theme */
/* Custom Keyframes & Animations */

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

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

@keyframes wave {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-0.5rem) scaleY(1.05);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(139, 92, 246, 0.8);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

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

/* Animation Utilities */
.animate-tilt {
  animation: tilt 3s ease-in-out infinite;
}

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

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

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Gradient Backgrounds */
.gradient-flow {
  background: linear-gradient(135deg, #0f0a1e 0%, #1a1035 25%, #2d1f5c 50%, #1a1035 75%, #0f0a1e 100%);
}

.gradient-card {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
}

.gradient-cta-secondary {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

/* Wave Pattern SVG Background */
.wave-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%238b5cf6' fill-opacity='0.1' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% auto;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e2e8f0;
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h2 {
  color: #f8fafc;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid rgba(139, 92, 246, 0.4);
  line-height: 1.3;
}

.prose h3 {
  color: #f1f5f9;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #e2e8f0;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  text-align: left;
}

.prose a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

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

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

.prose em {
  font-style: italic;
  color: #cbd5e1;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.375em;
}

.prose li::marker {
  color: #8b5cf6;
}

.prose blockquote {
  border-left: 0.25rem solid #8b5cf6;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #cbd5e1;
}

.prose blockquote p {
  margin-bottom: 0;
}

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

.prose thead {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.prose th {
  color: #f8fafc;
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 0.125rem solid rgba(139, 92, 246, 0.4);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(139, 92, 246, 0.2);
  color: #e2e8f0;
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.1);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 0.625rem 2.5rem rgba(139, 92, 246, 0.2);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  margin: 2.5em 0;
}

.prose code {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: rgba(15, 10, 30, 0.8);
  border: 0.0625rem solid rgba(139, 92, 246, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* Mobile Menu Styles */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Burger Button */
.burger-btn {
  background: rgba(15, 10, 30, 0.95);
  backdrop-filter: blur(0.5rem);
}

/* Card Hover Effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.25rem 2.5rem rgba(139, 92, 246, 0.3);
}

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%);
  backdrop-filter: blur(0.625rem);
}

/* Step Number Badge */
.step-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  box-shadow: 0 0 1.25rem rgba(139, 92, 246, 0.5);
}

/* FAQ Accordion */
.faq-item {
  border: 0.0625rem solid rgba(139, 92, 246, 0.3);
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.6);
}

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

.faq-content.active {
  max-height: 31.25rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #3b82f6);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #60a5fa);
}

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

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid #8b5cf6;
  outline-offset: 0.125rem;
}

/* 18+ Badge */
.age-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  font-weight: 700;
}

/* Provider Cloud */
.provider-tag {
  background: rgba(139, 92, 246, 0.2);
  border: 0.0625rem solid rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6);
}

/* Promo Card */
.promo-card {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 0.0625rem solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-0.25rem);
}

/* Responsive Adjustments */
@media (max-width: 48rem) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    margin-top: 2em;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}
