/* ================================================
   Tornadoboomz Casino - Custom CSS
   Theme: Tornado Booms Dynamic North
   ================================================ */

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

/* Marquee Animation for Game Cards */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-animation {
  animation: marquee 30s linear infinite;
}

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

/* Swirl Animations for Background */
@keyframes swirlPulse1 {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1) rotate(5deg);
  }
}

@keyframes swirlPulse2 {
  0%, 100% {
    opacity: 0.25;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15) rotate(-5deg);
  }
}

@keyframes swirlPulse3 {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

.swirl-animate-1 {
  animation: swirlPulse1 8s ease-in-out infinite;
}

.swirl-animate-2 {
  animation: swirlPulse2 12s ease-in-out infinite;
  animation-delay: -4s;
}

.swirl-animate-3 {
  animation: swirlPulse3 10s ease-in-out infinite;
  animation-delay: -2s;
}

/* Tornado Spin for SVG Elements */
@keyframes tornadoSpin {
  0% {
    transform: rotate(0deg);
    stroke-dasharray: 250 250;
  }
  50% {
    stroke-dasharray: 50 250;
  }
  100% {
    transform: rotate(360deg);
    stroke-dasharray: 250 250;
  }
}

@keyframes tornadoSpinReverse {
  0% {
    transform: rotate(360deg);
    stroke-dasharray: 200 200;
  }
  50% {
    stroke-dasharray: 30 200;
  }
  100% {
    transform: rotate(0deg);
    stroke-dasharray: 200 200;
  }
}

.tornado-spin {
  animation: tornadoSpin 15s linear infinite;
  transform-origin: center;
}

.tornado-spin-reverse {
  animation: tornadoSpinReverse 20s linear infinite;
  transform-origin: center;
}

/* Tilt Animation */
@keyframes tilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

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

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6), 0 0 60px rgba(34, 211, 238, 0.3);
  }
}

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

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

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

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

/* ================================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ================================================ */

.prose {
  color: #d1d5db;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #ffffff;
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #1e293b;
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4em;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #7c3aed);
}

.prose h3 {
  color: #f3f4f6;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}

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

/* Paragraphs */
.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #d1d5db;
}

.prose p:first-child {
  margin-top: 0;
}

/* Links */
.prose a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

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

/* Strong & Emphasis */
.prose strong {
  color: #ffffff;
  font-weight: 600;
}

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

/* Lists - Unordered */
.prose ul {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  list-style-type: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  color: #d1d5db;
}

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

/* Lists - Ordered */
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  list-style-type: none;
  counter-reset: ol-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
  color: #d1d5db;
  counter-increment: ol-counter;
}

.prose ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Nested Lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1.25em 1.5em;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(34, 211, 238, 0.05));
  border-left: 4px solid #7c3aed;
  border-radius: 0 0.75em 0.75em 0;
  color: #e5e7eb;
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
  color: #e5e7eb;
}

.prose blockquote p:first-child::before {
  content: '\201C';
  color: #7c3aed;
  font-size: 1.5em;
  margin-right: 0.25em;
}

/* Tables */
.prose .table-responsive {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75em;
  border: 1px solid #1e293b;
}

.prose table {
  width: 100%;
  min-width: 32em;
  border-collapse: collapse;
  font-size: 0.9em;
}

.prose thead {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.1));
}

.prose th {
  color: #22d3ee;
  font-weight: 600;
  text-align: left;
  padding: 1em 1.25em;
  border-bottom: 2px solid #1e293b;
  white-space: nowrap;
}

.prose td {
  padding: 0.875em 1.25em;
  border-bottom: 1px solid #1e293b;
  color: #d1d5db;
}

.prose tbody tr {
  background: rgba(20, 27, 45, 0.5);
  transition: background 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(20, 27, 45, 0.8);
}

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

/* Code */
.prose code {
  background: rgba(124, 58, 237, 0.15);
  color: #ec4899;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
  background: #0a0e17;
  border: 1px solid #1e293b;
  border-radius: 0.75em;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid #1e293b;
}

/* Horizontal Rule */
.prose hr {
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #22d3ee, #ec4899, transparent);
}

/* Small text */
.prose small {
  font-size: 0.875em;
  color: #9ca3af;
}

/* ================================================
   UTILITY OVERRIDES
   ================================================ */

/* Details/Summary Styling */
details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #0a0e17;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #ffffff;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 768px) {
  .marquee-animation {
    animation-duration: 20s;
  }
  
  .prose h2 {
    font-size: 1.5em;
  }
  
  .prose h3 {
    font-size: 1.25em;
  }
  
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose table {
    font-size: 0.8125em;
  }
  
  .prose th,
  .prose td {
    padding: 0.625em 0.875em;
  }
}

@media (max-width: 480px) {
  .prose ul li,
  .prose ol li {
    padding-left: 1.25em;
  }
  
  .prose blockquote {
    padding: 1em;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
  .prose {
    color: #000000;
  }
  
  .prose a {
    color: #000000;
    text-decoration: underline;
  }
  
  .prose h2,
  .prose h3,
  .prose h4,
  .prose strong {
    color: #000000;
  }
}
