/* ============================================
   POWBET CASINO - CUSTOM STYLES
   Power Strike Max Core Theme
   ============================================ */

/* --- Keyframe Animations --- */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(139, 92, 246, 0.7), 0 0 3.75rem rgba(217, 70, 239, 0.3);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes energy-line {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes diamond-pulse {
  0%,
  100% {
    transform: scale(2) translate(25%, 25%) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(2.2) translate(25%, 25%) rotate(45deg);
    opacity: 0.6;
  }
}

@keyframes impact-flash {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

/* --- Utility Classes --- */
.power-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

.cta-pulse {
  animation: cta-pulse 2s ease-in-out infinite;
}

.energy-line {
  stroke-dasharray: 1000;
  animation: energy-line 4s ease-in-out infinite;
}

.energy-line-reverse {
  stroke-dasharray: 1000;
  animation: energy-line 4s ease-in-out infinite reverse;
}

.diamond-pulse {
  animation: diamond-pulse 6s ease-in-out infinite;
}

.impact-flash {
  animation: impact-flash 0.8s ease-out forwards;
}

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

/* --- Navigation Link Hover Effect --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  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 {
  min-width: 100%;
}

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

::-webkit-scrollbar-track {
  background: #12121a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #d946ef);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #e879f9);
}

/* ============================================
   PROSE STYLING
   Typography for Markdown Content
   ============================================ */

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

/* --- Headings --- */
.prose h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 800;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid rgba(139, 92, 246, 0.3);
  position: relative;
}

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

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

.prose h4 {
  color: #fbbf24;
  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: #d1d5db;
}

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

/* --- Links --- */
.prose a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  border-bottom: 0.0625rem solid transparent;
}

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

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

.prose ul {
  list-style: none;
}

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

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 0.125rem;
  transform: rotate(45deg);
}

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

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

.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

/* --- Tables --- */
.prose .table-responsive {
  margin: 2em 0;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(139, 92, 246, 0.2);
}

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

.prose thead {
  background: #1e1e2e;
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: #06b6d4;
  border-bottom: 0.125rem solid rgba(139, 92, 246, 0.3);
}

.prose td {
  padding: 0.875rem 1.25rem;
  color: #d1d5db;
  border-bottom: 0.0625rem solid rgba(139, 92, 246, 0.1);
}

.prose tbody tr {
  background: rgba(10, 10, 15, 0.5);
  transition: background-color 0.2s ease;
}

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

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

/* --- Blockquotes --- */
.prose blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  border-left: 0.25rem solid #8b5cf6;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #e5e7eb;
}

.prose blockquote p {
  margin: 0;
}

.prose blockquote p::before {
  content: '"';
  font-size: 2em;
  color: #8b5cf6;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.25em;
}

/* --- 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);
  border: 0.0625rem solid rgba(139, 92, 246, 0.2);
}

/* --- Code --- */
.prose code {
  background: #1e1e2e;
  color: #06b6d4;
  padding: 0.125em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: #1e1e2e;
  border: 0.0625rem solid rgba(139, 92, 246, 0.2);
  border-radius: 0.75rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
}

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

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

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

/* --- Emphasis / Italic --- */
.prose em {
  color: #fbbf24;
  font-style: italic;
}

/* --- Details/Summary (FAQ style) --- */
.prose details {
  margin: 1em 0;
  background: #1e1e2e;
  border: 0.0625rem solid rgba(139, 92, 246, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose summary {
  padding: 1em 1.5em;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.prose summary:hover {
  background: rgba(139, 92, 246, 0.1);
}

.prose details[open] summary {
  border-bottom: 0.0625rem solid rgba(139, 92, 246, 0.2);
}

.prose details > *:not(summary) {
  padding: 0 1.5em;
}

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

  .prose h2 {
    margin-top: 2em;
  }

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

  .prose ol li::before {
    width: 1.5em;
    height: 1.5em;
    font-size: 0.75rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.75rem 1rem;
  }

  .prose blockquote {
    padding: 1em 1.25em;
  }
}
