/* Jackpot Avenue Theme - Custom Animations & Overrides */

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

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

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.8), 0 0 60px rgba(251, 191, 36, 0.6);
  }
}

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

@keyframes coin-rain {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Utility Classes */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play_state: paused;
}

.parallax-layer {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

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

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

.coin-animation {
  animation: coin-rain 4s ease-in infinite;
}

/* Enhanced prose styling for markdown content with improved readability and responsive design */
.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose h2 {
  color: #fbbf24;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose h3 {
  color: #fcd34d;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  margin-top: 1.75em;
  margin-bottom: 0.875em;
  line-height: 1.4;
}

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

.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: #d1d5db;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.75vw, 1.125rem);
  color: #e5e7eb;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.75em;
  color: #d1d5db;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
  line-height: 1.7;
}

.prose li::marker {
  color: #fbbf24;
}

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

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

.prose a {
  color: #ec4899;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #f472b6;
  text-decoration-thickness: 2px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 2.25vw, 1rem);
  background: rgba(31, 41, 55, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.prose th {
  color: #1f2937;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #374151;
  color: #d1d5db;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:hover {
  background-color: rgba(236, 72, 153, 0.1);
  transition: background-color 0.2s ease;
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

.prose code {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  padding: 0.25em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: #1f2937;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid #374151;
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
}

.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #fbbf24, #ec4899);
  border-radius: 4px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chrome Effect */
.chrome-effect {
  background: linear-gradient(145deg, #1f2937 0%, #111827 50%, #1f2937 100%);
  position: relative;
}

.chrome-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

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

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fbbf24, #ec4899);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f59e0b, #db2777);
}

/* Burger Menu Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
}

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

/* Responsive adjustments for prose */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }

  .prose blockquote {
    padding: 1em 1.25em;
  }
}

@media (max-width: 480px) {
  .prose th,
  .prose td {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }
}
