/* ============================================
   POWBET CASINO - CUSTOM STYLES
   Power Strike Global Theme
   ============================================ */

/* ============================================
   PARTICLE ANIMATION
   ============================================ */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(135deg, #fbbf24 0%, #dc2626 100%);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

.particle-1 {
  left: 10%;
  animation-delay: 0s;
}
.particle-2 {
  left: 25%;
  animation-delay: 1s;
}
.particle-3 {
  left: 40%;
  animation-delay: 2s;
}
.particle-4 {
  left: 55%;
  animation-delay: 3s;
}
.particle-5 {
  left: 70%;
  animation-delay: 4s;
}
.particle-6 {
  left: 85%;
  animation-delay: 5s;
}
.particle-7 {
  left: 15%;
  animation-delay: 6s;
}
.particle-8 {
  left: 75%;
  animation-delay: 7s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* ============================================
   GLOW ANIMATION
   ============================================ */
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 0.25rem rgba(251, 191, 36, 0.5), 0 0 0.5rem rgba(251, 191, 36, 0.3), 0 0 1rem
      rgba(251, 191, 36, 0.2);
  }
  50% {
    text-shadow: 0 0 0.5rem rgba(251, 191, 36, 0.8), 0 0 1rem rgba(251, 191, 36, 0.5), 0 0 1.5rem
      rgba(251, 191, 36, 0.3);
  }
}

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

/* ============================================
   PULSE SUBTLE ANIMATION
   ============================================ */
@keyframes pulseSuble {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 0.625rem rgba(251, 191, 36, 0);
  }
}

.animate-pulse-subtle {
  animation: pulseSuble 4s ease-in-out infinite;
}

/* ============================================
   MARQUEE ANIMATION
   ============================================ */
.marquee-bg {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   NAV LINK HOVER EFFECT
   ============================================ */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(90deg, #fbbf24, #dc2626);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   TABLE RESPONSIVE WRAPPER
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* ============================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ============================================ */
.prose {
  color: #d1d5db;
  max-width: 100%;
  line-height: 1.7;
}

/* Headings */
.prose h2 {
  color: #fbbf24;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid rgba(251, 191, 36, 0.3);
  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: #fcd34d;
  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:first-of-type {
  font-size: 1.125rem;
}

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

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

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

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

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

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

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
}

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

.prose ol li::marker {
  color: #fbbf24;
  font-weight: 700;
}

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

.prose thead {
  background: #0a0a0f;
}

.prose th {
  color: #fbbf24;
  font-weight: 700;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 0.125rem solid rgba(251, 191, 36, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid #2a2a3e;
  color: #d1d5db;
}

.prose tbody tr:hover {
  background: rgba(30, 30, 46, 0.5);
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #fbbf24;
  background: rgba(30, 30, 46, 0.5);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

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

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

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

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

.prose pre {
  background: #1e1e2e;
  border: 0.0625rem solid #2a2a3e;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

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

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

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

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

/* ============================================
   RESPONSIVE TABLE WRAPPER FOR PROSE
   ============================================ */
.prose .table-responsive,
.prose div:has(> table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* ============================================
   FIGURE AND FIGCAPTION
   ============================================ */
.prose figure {
  margin: 2rem 0;
}

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

/* ============================================
   DETAILS / SUMMARY
   ============================================ */
.prose details {
  background: #1e1e2e;
  border: 0.0625rem solid #2a2a3e;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.prose summary {
  padding: 1rem;
  cursor: pointer;
  color: #fbbf24;
  font-weight: 600;
}

.prose details[open] summary {
  border-bottom: 0.0625rem solid #2a2a3e;
}

.prose details > *:not(summary) {
  padding: 0 1rem 1rem;
}

/* ============================================
   SCROLL BEHAVIOR
   ============================================ */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  overflow-y: auto;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

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

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

  .particle {
    width: 0.25rem;
    height: 0.25rem;
  }
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(251, 191, 36, 0.3);
  color: #ffffff;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* ============================================
   FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0.125rem solid #fbbf24;
  outline-offset: 0.125rem;
}
