/* ============================================
   BingoBongo Casino - Custom Styles
   ============================================ */

/* Particle Animation */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s infinite ease-in-out;
}

.particle-container::before {
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.particle-container::after {
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  bottom: 15%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 1.5rem;
}

.game-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* Pause marquee on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

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

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   Prose Styling for Markdown Content
   ============================================ */

.prose {
  color: #1a202c;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1a202c;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.2;
  position: relative;
  padding-bottom: 0.5em;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(to right, #FF6B35, #F7931E);
  border-radius: 0.125rem;
}

.prose h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #2d3748;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

/* Paragraphs */
.prose p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.25em;
  max-width: 100%;
}

.prose p:first-of-type {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: #2d3748;
}

/* Links */
.prose a {
  color: #FF6B35;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Lists */
.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

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

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.7;
  color: #4a5568;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  border-radius: 50%;
}

.prose ol {
  counter-reset: list-counter;
}

.prose ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  line-height: 1.7;
  color: #4a5568;
}

.prose ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: #FF6B35;
}

/* Tables */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prose thead {
  background: linear-gradient(to right, #FF6B35, #F7931E);
}

.prose thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.prose tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: #f7fafc;
}

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

.prose tbody td {
  padding: 1rem;
  color: #4a5568;
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #FF6B35;
  padding: 1rem 1.5rem;
  margin: 2em 0;
  background: #f7fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #2d3748;
}

.prose blockquote p {
  margin: 0;
}

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

/* Strong and Emphasis */
.prose strong {
  font-weight: 600;
  color: #1a202c;
}

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

/* Code */
.prose code {
  background: #f7fafc;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #FF6B35;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: #2d3748;
  color: #f7fafc;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.125rem;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin: 3em 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .prose h2 {
    margin-top: 1.5em;
  }
  
  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.75rem;
  }
  
  .prose blockquote {
    padding: 0.75rem 1rem;
  }
}

/* Ensure readability - prevent dark text on dark backgrounds */
.prose .bg-dark,
.prose .bg-primary,
.prose .bg-secondary {
  color: white;
}

.prose .text-dark {
  color: #1a202c;
}

.prose .text-light,
.prose .bg-light {
  color: #1a202c;
}

/* Additional spacing for better readability */
.prose > * + * {
  margin-top: 1em;
}

.prose > h2 + *,
.prose > h3 + * {
  margin-top: 0.5em;
}
