/* ============================================
   CUSTOM CSS - Vampire Bingo Net
   Nocturne Royale Theme
   ============================================ */

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-2rem) translateX(1rem);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4rem) translateX(-0.5rem);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-2rem) translateX(-1rem);
    opacity: 0.6;
  }
}

@keyframes particle-drift {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-3rem) translateX(2rem) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-6rem) translateX(-1rem) scale(0.8);
    opacity: 0;
  }
}

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

@keyframes tilt-swing {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 1rem rgba(147, 51, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 2rem rgba(147, 51, 234, 0.8);
  }
}

@keyframes mist-drift {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.2;
  }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */

.animate-particle {
  animation: particle-float 6s ease-in-out infinite;
}

.animate-particle-drift {
  animation: particle-drift 8s ease-in-out infinite;
}

.animate-tilt {
  animation: tilt-gentle 4s ease-in-out infinite;
}

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

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

.animate-mist {
  animation: mist-drift 20s linear infinite;
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   TABLE RESPONSIVE WRAPPER
   ============================================ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.table-responsive table {
  min-width: 100%;
  border-collapse: collapse;
}

/* ============================================
   PROSE STYLING
   ============================================ */

.prose {
  color: #e5e7eb;
  max-width: 100%;
  line-height: 1.7;
}

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

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

.prose h4 {
  color: #e5e7eb;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  font-size: 1rem;
  line-height: 1.75;
  color: #d1d5db;
}

.prose a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #d1d5db;
  line-height: 1.7;
}

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

.prose ul > li > ul,
.prose ol > li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
}

.prose thead {
  border-bottom: 2px solid #dc2626;
}

.prose thead th {
  color: #f3f4f6;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75rem 0.75rem;
  text-align: left;
  background-color: rgba(220, 38, 38, 0.1);
}

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

.prose tbody tr:hover {
  background-color: rgba(168, 85, 247, 0.05);
}

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

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

.prose blockquote {
  font-style: italic;
  color: #d1d5db;
  border-left: 0.25rem solid #a855f7;
  padding-left: 1.5rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  quotes: "\201C""\201D""\2018""\2019";
  background-color: rgba(168, 85, 247, 0.05);
  padding: 1rem 1.5rem;
}

.prose blockquote p:first-of-type::before {
  content: open-quote;
}

.prose blockquote p:last-of-type::after {
  content: close-quote;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
  display: block;
}

.prose hr {
  border: 0;
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

.prose code {
  color: #f472b6;
  font-weight: 600;
  font-size: 0.875em;
  background-color: rgba(168, 85, 247, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.prose pre {
  background-color: rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 400;
}

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

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

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

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

/* ============================================
   CUSTOM OVERRIDES
   ============================================ */

/* Mobile menu background */
.mobile-menu-bg {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Bonus badge glow */
.bonus-badge {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 0 2rem rgba(168, 85, 247, 0.6);
}

/* CTA button effects */
.cta-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(220, 38, 38, 0.4);
}

.cta-secondary {
  background: transparent;
  border: 2px solid #a855f7;
  color: #a855f7;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #a855f7;
  color: #000;
  transform: translateY(-0.125rem);
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.game-card:hover {
  transform: translateY(-0.5rem);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 1rem 2rem rgba(168, 85, 247, 0.3);
}

/* Particle decorations */
.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Mist effect */
.mist-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(192, 192, 192, 0.1) 50%, transparent 100%);
  pointer-events: none;
  will-change: transform;
}

/* Footer styling */
.footer-link {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #a855f7;
}

/* Disclaimer text */
.disclaimer-text {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* Step badge styling */
.step-badge {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 0.5rem 1rem rgba(168, 85, 247, 0.4);
}

/* Provider cloud tags */
.provider-tag {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0.25rem;
}

.provider-tag:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #f3f4f6;
}

/* FAQ accordion styling */
.faq-item {
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1.5rem 0;
}

.faq-question {
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #a855f7;
}

.faq-answer {
  color: #d1d5db;
  margin-top: 1rem;
  line-height: 1.7;
}

/* Badge styling */
.badge-18plus {
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: inline-block;
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }
}
