/* ================================
   Glorion Casino - Custom Styles
   Online Glory Stream Theme
   ================================ */

/* Particle Animation */
.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-up 5s ease-out forwards;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Glow Effects */
.glow-box {
  position: relative;
}

.glow-box::before {
  content: "";
  position: absolute;
  inset: -0.125rem;
  background: linear-gradient(135deg, #6366f1, #818cf8, #fbbf24);
  border-radius: 1.125rem;
  opacity: 0.5;
  filter: blur(1.25rem);
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

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

.glow-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Parallax Base */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.table-responsive table {
  min-width: 37.5rem;
}

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

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

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

/* Headings */
.prose h2 {
  color: #e2e8f0;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid #1e293b;
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 4rem;
  height: 0.125rem;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.prose h3 {
  color: #e2e8f0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  color: #e2e8f0;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.5em;
  color: #94a3b8;
}

.prose p:first-of-type {
  font-size: 1.1em;
  color: #cbd5e1;
}

/* Links */
.prose a {
  color: #818cf8;
  text-decoration: none;
  border-bottom: 0.0625rem solid transparent;
  transition: all 0.2s ease;
}

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

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

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  margin-bottom: 0.75em;
  padding-left: 1.5em;
  color: #94a3b8;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 50%;
}

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

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

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

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

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

.prose thead {
  background: #1e293b;
}

.prose th {
  padding: 1rem;
  text-align: left;
  color: #e2e8f0;
  font-weight: 600;
  border-bottom: 0.125rem solid #6366f1;
}

.prose td {
  padding: 1rem;
  color: #94a3b8;
  border-bottom: 0.0625rem solid #1e293b;
}

.prose tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

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

/* Blockquotes */
.prose blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.05));
  border-left: 0.25rem solid #6366f1;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #cbd5e1;
}

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

.prose blockquote p:first-of-type {
  font-size: 1em;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2em 0;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Code */
.prose code {
  background: #1e293b;
  color: #818cf8;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.prose pre {
  background: #111827;
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 0.0625rem solid #1e293b;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  margin: 3em 0;
}

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

.prose em {
  color: #cbd5e1;
}

/* First Letter Styling */
.prose > p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1em;
  background: linear-gradient(135deg, #6366f1, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 48rem) {
  .prose h2 {
    margin-top: 2em;
  }

  .prose ul li,
  .prose ol li {
    padding-left: 1.25em;
  }

  .prose blockquote {
    padding: 1em 1.25em;
    margin: 1.5em 0;
  }

  .prose > p:first-of-type::first-letter {
    font-size: 2.5em;
  }
}

/* Custom scrollbar for table responsive */
.table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #818cf8;
}
