/* ===================================
   AngelSpin Casino - Custom Styles
   Celestial Vector Wing Theme
   =================================== */

/* ===================================
   Light Beam Animations
   =================================== */
@keyframes lightBeamPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1.02);
  }
}

@keyframes lightBeamShimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 0% 200%;
  }
}

.light-beam {
  animation: lightBeamPulse 4s ease-in-out infinite;
}

/* ===================================
   Particle Animation
   =================================== */
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(0.625rem) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) translateX(-0.625rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0);
  }
}

.particles {
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.8), rgba(212, 168, 83, 0));
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 15s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 20s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 16s;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 14s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  left: 15%;
  animation-duration: 22s;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  left: 90%;
  animation-duration: 17s;
  animation-delay: 7s;
}

/* ===================================
   Marquee Animation
   =================================== */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

/* ===================================
   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;
}

/* ===================================
   FAQ Accordion Styling
   =================================== */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(37, 37, 96, 0.5);
}

/* ===================================
   Prose Styling for Content Pages
   =================================== */
.prose {
  color: #c4c4eb;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #f8f4ff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(212, 168, 83, 0.3);
}

.prose h3 {
  color: #e8e8f7;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: #e0d4f7;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  text-align: left;
}

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

/* Links */
.prose a {
  color: #d4a853;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease;
}

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

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

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

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

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: #c4c4eb;
}

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

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

.prose ol li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
  color: #c4c4eb;
  counter-increment: list-counter;
}

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

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

/* Blockquotes */
.prose blockquote {
  position: relative;
  border-left: 4px solid #d4a853;
  background: rgba(18, 18, 46, 0.6);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #e0d4f7;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: #d4a853;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

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

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: rgba(37, 37, 96, 0.5);
}

.prose th {
  color: #f8f4ff;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid rgba(212, 168, 83, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(26, 26, 66, 0.5);
  color: #c4c4eb;
}

.prose tbody tr:hover {
  background: rgba(26, 26, 66, 0.3);
}

/* Table responsive wrapper in prose */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(37, 37, 96, 0.5);
}

.prose .table-responsive table {
  margin: 0;
  min-width: 31.25rem;
}

/* Code Inline */
.prose code {
  background: rgba(37, 37, 96, 0.5);
  color: #e4c77a;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

/* Code Blocks */
.prose pre {
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid rgba(37, 37, 96, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 168, 83, 0.5), transparent);
  margin: 2.5rem 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Figure and Figcaption */
.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  text-align: center;
  color: #9999d6;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Definition Lists */
.prose dl {
  margin: 1.5rem 0;
}

.prose dt {
  color: #f8f4ff;
  font-weight: 600;
  margin-top: 1rem;
}

.prose dd {
  margin-left: 1.5rem;
  color: #c4c4eb;
}

/* Mark/Highlight */
.prose mark {
  background: rgba(212, 168, 83, 0.3);
  color: #f8f4ff;
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
}

/* Small Text */
.prose small {
  font-size: 0.875rem;
  color: #9999d6;
}

/* Abbreviations */
.prose abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* Keyboard Input */
.prose kbd {
  background: rgba(37, 37, 96, 0.7);
  border: 1px solid rgba(107, 107, 184, 0.5);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875em;
  color: #e8e8f7;
}

/* Superscript and Subscript */
.prose sup,
.prose sub {
  font-size: 0.75em;
  color: #9999d6;
}

/* ===================================
   Custom Info Boxes for Prose
   =================================== */
.prose .info-box {
  background: rgba(107, 107, 184, 0.1);
  border: 1px solid rgba(107, 107, 184, 0.3);
  border-left: 4px solid #6b6bb8;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.prose .warning-box {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-left: 4px solid #d4a853;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.prose .success-box {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-left: 4px solid #4ade80;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ===================================
   Responsive Prose Adjustments
   =================================== */
@media (max-width: 48rem) {
  .prose {
    font-size: 0.9375rem;
  }

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

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

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

  .prose blockquote {
    padding: 1rem;
  }

  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }
}

/* ===================================
   CTA Button Hover Effects
   =================================== */
@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(212, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 0 1.875rem rgba(212, 168, 83, 0.5);
  }
}

.cta-glow:hover {
  animation: buttonGlow 1.5s ease-in-out infinite;
}

/* ===================================
   Card Hover Effects
   =================================== */
@keyframes cardShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.game-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: cardShine 0.8s ease-out;
  pointer-events: none;
  border-radius: 0.75rem;
}

/* ===================================
   Scroll Customization
   =================================== */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: #3d3d8c;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b6bb8;
}

/* ===================================
   Selection Styling
   =================================== */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #f8f4ff;
}

::-moz-selection {
  background: rgba(212, 168, 83, 0.3);
  color: #f8f4ff;
}

/* ===================================
   Focus States for Accessibility
   =================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .particles,
  .light-beam,
  header,
  footer,
  .cta-glow {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .prose {
    color: #333 !important;
  }

  .prose h2,
  .prose h3,
  .prose h4 {
    color: #000 !important;
  }

  .prose a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}
