/* Parallax Effect */
.parallax-container {
  overflow: hidden;
}

.parallax-bg {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
}

.marquee-content {
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

/* Hover Effects */
.hover-tilt {
  transition: transform 0.3s ease;
}

.hover-tilt:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Jungle Rain Effect */
@keyframes rainDrop {
  0% {
    transform: translateY(-100vh) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

.rain-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
  animation: rainDrop 2s linear infinite;
  pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(20, 83, 45, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #14b8a6, #22c55e);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0d9488, #16a34a);
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Parallax Scroll Effect */
@media (min-width: 1024px) {
  .parallax-bg {
    will-change: transform;
  }
}

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

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

/* Prose Styling for Markdown Content */
.prose {
  color: #e5e7eb;
  max-width: none;
}

.prose h1 {
  color: #ffffff;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #5eead4, #22c55e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(20, 184, 166, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: #5eead4;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h4 {
  color: #22c55e;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #d1d5db;
}

.prose a {
  color: #14b8a6;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #5eead4;
  text-decoration: none;
}

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

.prose ul {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose ul li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
  position: relative;
}

.prose ul li::marker {
  color: #14b8a6;
}

.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose ol li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.prose ol li::marker {
  color: #14b8a6;
  font-weight: 600;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #9ca3af;
  border-left: 4px solid #14b8a6;
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(20, 184, 166, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  background: rgba(21, 128, 61, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.prose thead {
  background: rgba(20, 184, 166, 0.2);
}

.prose thead th {
  color: #ffffff;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.prose tbody tr:hover {
  background: rgba(20, 184, 166, 0.05);
}

.prose tbody td {
  vertical-align: baseline;
  padding: 0.75rem;
  color: #d1d5db;
}

.prose code {
  color: #22c55e;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(21, 128, 61, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.prose pre {
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.8);
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

.prose img {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.prose hr {
  border-color: rgba(20, 184, 166, 0.3);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Responsive prose adjustments */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose thead th,
  .prose tbody td {
    padding: 0.5rem;
  }
}

/* Special styling for casino content */
.prose .bonus-highlight {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(34, 197, 94, 0.2));
  border: 2px solid rgba(20, 184, 166, 0.4);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.prose .bonus-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #14b8a6, #22c55e, #14b8a6);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.prose .warning-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1.5rem 0;
  color: #fca5a5;
}

.prose .info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1.5rem 0;
  color: #93c5fd;
}
