/* Animations and Custom Styles for VampireBingo Casino */

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(220, 20, 60, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(220, 20, 60, 0.8), 0 0 60px rgba(220, 20, 60, 0.5);
  }
}

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

/* Particle Animation */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(192, 192, 192, 0.6);
  border-radius: 50%;
  animation: particle-float 15s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.8);
}

.particle-container::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle-container::after {
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(50px, -100px) scale(1.5);
    opacity: 0.8;
  }
  90% {
    opacity: 1;
  }
}

/* Tilt Card Effect */
.tilt-card {
  transition: transform 0.3s ease-out;
}

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

/* Prose Styling for Markdown Content */
.prose {
  color: #C0C0C0;
  max-width: 100%;
}

.prose h2 {
  color: #DC143C;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #E8E8E8;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
}

.prose h4 {
  color: #E8E8E8;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

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

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

.prose a:hover {
  color: #8B0000;
}

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

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

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

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

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

.prose li {
  margin-top: 0.625em;
  margin-bottom: 0.625em;
  line-height: 1.75;
  color: #C0C0C0;
}

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

.prose blockquote {
  border-left: 0.25rem solid #DC143C;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #E8E8E8;
  background: rgba(25, 25, 112, 0.3);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0.5rem;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: rgba(139, 0, 0, 0.5);
  border-bottom: 2px solid #DC143C;
}

.prose thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #E8E8E8;
  border-bottom: 2px solid rgba(220, 20, 60, 0.5);
}

.prose tbody tr {
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(139, 0, 0, 0.2);
}

.prose tbody td {
  padding: 0.875rem 1rem;
  color: #C0C0C0;
  line-height: 1.6;
}

.prose code {
  background: rgba(25, 25, 112, 0.5);
  color: #DC143C;
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.9375em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: rgba(10, 10, 46, 0.8);
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: 0.75rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #E8E8E8;
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(220, 20, 60, 0.3);
  margin: 3em 0;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2em;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.75em;
  }

  .prose h4 {
    font-size: 1.125rem;
  }

  .prose {
    font-size: 0.9375rem;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Ensure tables inside prose are also responsive */
.prose .table-responsive table {
  display: table;
  width: 100%;
}

/* Focus styles for accessibility */
.prose a:focus,
.prose button:focus {
  outline: 2px solid #DC143C;
  outline-offset: 2px;
}
