/* WhyNot Casino - Custom Styles */
/* Fusion Pop Theme with Particle & Tilt Animations */

/* ============================================
   BASE & UTILITY STYLES
   ============================================ */

html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

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

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

/* Hide scrollbar but allow scroll */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============================================
   PARTICLE ANIMATION
   ============================================ */

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle 15s infinite ease-in-out;
}

.particle-1 {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #ff2d78, #8b5cf6);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle-2 {
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(135deg, #00e5ff, #8b5cf6);
  top: 60%;
  left: 80%;
  animation-delay: -3s;
}

.particle-3 {
  width: 0.625rem;
  height: 0.625rem;
  background: linear-gradient(135deg, #ffe600, #ff2d78);
  top: 80%;
  left: 20%;
  animation-delay: -6s;
}

.particle-4 {
  width: 0.25rem;
  height: 0.25rem;
  background: #00e5ff;
  top: 30%;
  left: 70%;
  animation-delay: -9s;
}

.particle-5 {
  width: 0.5rem;
  height: 0.5rem;
  background: #8b5cf6;
  top: 50%;
  left: 50%;
  animation-delay: -12s;
}

@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translate(6.25rem, -3.125rem) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translate(-3.125rem, 6.25rem) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(3.125rem, 3.125rem) rotate(270deg);
    opacity: 0.8;
  }
}

.particle-dot {
  animation: pulse-dot 3s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* ============================================
   TILT EFFECT
   ============================================ */

.tilt-box {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d;
}

.tilt-box:hover {
  transform: perspective(62.5rem) rotateX(2deg) rotateY(-2deg) translateY(-0.25rem);
  box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(255, 45, 120, 0.15);
}

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

.prose {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings */
.prose h2 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #2d2250;
  line-height: 1.3;
}

.prose h3 {
  color: #ffffff;
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

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

.prose p:last-child {
  margin-bottom: 0;
}

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

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

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

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

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

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

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

.prose li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
  padding-left: 0.25rem;
}

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

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
}

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

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid #2d2250;
}

.prose table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose thead {
  background: #0f0a1f;
}

.prose th {
  color: #00e5ff;
  font-weight: 700;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid #2d2250;
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2d2250;
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(45, 34, 80, 0.3);
}

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

/* Code */
.prose code {
  background: #1a1230;
  color: #ffe600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: #0f0a1f;
  border: 1px solid #2d2250;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border: 1px solid #2d2250;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #ff2d78, #8b5cf6, #00e5ff);
  margin: 2.5rem 0;
  border-radius: 1px;
}

/* First paragraph special styling */
.prose > p:first-of-type {
  font-size: 1.125rem;
  color: #e5e7eb;
  line-height: 1.8;
}

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

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

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose > p:first-of-type {
    font-size: 1rem;
  }

  .particle {
    display: none;
  }
}

/* ============================================
   BUTTON & INTERACTIVE STATES
   ============================================ */

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-glow:hover::before {
  left: 100%;
}

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, #ff2d78, #8b5cf6, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgba(0, 229, 255, 0.15);
}

/* ============================================
   CUSTOM SCROLLBAR (where visible)
   ============================================ */

::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: #2d2250;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}
