/* Custom animations and overrides for Arubabet Casino */

/* Keyframe Animations */
@keyframes palm-sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes floating-badge {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 212, 59, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 212, 59, 0.8), 0 0 40px rgba(255, 212, 59, 0.3);
  }
}

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

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

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.7;
  }
  33% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  66% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.8;
  }
}

/* Animation Classes */
.palm-sway {
  animation: palm-sway 4s ease-in-out infinite;
}

.floating-badge {
  animation: floating-badge 3s ease-in-out infinite;
}

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

.tilt-card {
  animation: tilt 6s ease-in-out infinite;
}

.tilt-card:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

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

.marquee-content {
  animation: marquee 30s linear infinite;
  width: calc(200% + 2rem);
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Particle Effects */
.particle-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
  animation: particle-float 8s ease-in-out infinite;
  pointer-events: none;
}

/* Enhanced prose styling for better readability and responsive design */
/* Prose Styling for Readability */
.prose {
  color: #e5e7eb;
  line-height: 1.7;
  max-width: 100%;
  font-size: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.prose h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-top: 0;
}

.prose h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #ff6b35;
  border-bottom: 2px solid rgba(255, 107, 53, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #00bfff;
}

.prose h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #ff1493;
}

.prose p {
  margin-bottom: 1.75rem;
  color: #d1d5db;
  max-width: 100%;
}

.prose .lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  color: #f3f4f6;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.prose a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.prose a:hover {
  color: #ff8c42;
  border-bottom-color: #ff8c42;
}

.prose ul,
.prose ol {
  margin: 2rem 0;
  padding-left: 2rem;
  max-width: 100%;
}

.prose li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  line-height: 1.6;
}

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

.prose blockquote {
  border-left: 4px solid #ff6b35;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(55, 65, 81, 0.3);
  border-radius: 0 0.5rem 0.5rem 0;
  max-width: 100%;
}

.prose code {
  background-color: rgba(55, 65, 81, 0.8);
  color: #fbbf24;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
}

.prose pre {
  background-color: rgba(17, 24, 39, 0.9);
  color: #e5e7eb;
  padding: 2rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  max-width: 100%;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.9rem;
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose th,
.prose td {
  border: 1px solid #374151;
  padding: 1rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background-color: rgba(55, 65, 81, 0.8);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  color: #d1d5db;
}

.prose tbody tr:nth-child(even) {
  background-color: rgba(55, 65, 81, 0.2);
}

.prose tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.1);
}

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

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

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

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

  .prose {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .prose h1,
  .prose h2,
  .prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

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

  .prose blockquote {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
  }

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

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

@media (max-width: 480px) {
  .prose {
    font-size: 0.9rem;
  }

  .prose th,
  .prose td {
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
  }
}

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

.table-responsive table {
  min-width: 600px;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(55, 65, 81, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #ff8c42;
}

/* Smooth transitions for all interactive elements */
* {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .prose {
    color: #ffffff;
  }

  .prose p,
  .prose li {
    color: #ffffff;
  }

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

  .prose h2 {
    color: #fbbf24;
  }

  .prose h3 {
    color: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .palm-sway,
  .floating-badge,
  .pulse-glow,
  .tilt-card,
  .marquee-content,
  .particle-bg::before {
    animation: none;
  }

  * {
    transition: none;
  }
}
