/* ================================================
   BETENZA CASINO - Custom CSS
   Enza Momentum Core Plus Theme
   ================================================ */

/* ------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------ */
:root {
  --color-primary: #d946ef;
  --color-primary-light: #e879f9;
  --color-primary-dark: #a21caf;
  --color-accent: #06b6d4;
  --color-accent-light: #22d3ee;
  --color-dark-900: #0a0a0f;
  --color-dark-800: #12121a;
  --color-dark-700: #1a1a25;
  --color-dark-600: #252532;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------
   KEYFRAME ANIMATIONS
   ------------------------------------------------ */

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1.25rem) rotate(2deg);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1.5rem) rotate(-2deg);
  }
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes pulse-glow-delayed {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* Gradient Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ------------------------------------------------
   ANIMATION UTILITY CLASSES
   ------------------------------------------------ */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
  animation-delay: 1s;
}

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

.animate-pulse-glow-delayed {
  animation: pulse-glow-delayed 5s ease-in-out infinite;
  animation-delay: 2s;
}

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(217, 70, 239, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ------------------------------------------------
   GRADIENT UTILITIES
   ------------------------------------------------ */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* ------------------------------------------------
   MARQUEE CONTAINER
   ------------------------------------------------ */
.marquee-container {
  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);
}

/* ------------------------------------------------
   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: var(--color-dark-800);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ------------------------------------------------
   DETAILS/SUMMARY (FAQ) STYLING
   ------------------------------------------------ */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(217, 70, 239, 0.1);
  margin-bottom: 0;
}

/* ------------------------------------------------
   PROSE STYLING FOR MARKDOWN CONTENT
   ------------------------------------------------ */
.prose {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(217, 70, 239, 0.3);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
}

.prose h3 {
  color: #f3f4f6;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: #e5e7eb;
  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.1rem;
  color: #e5e7eb;
}

/* Links */
.prose a {
  color: var(--color-primary-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s var(--transition-smooth);
}

.prose a:hover {
  color: var(--color-accent-light);
  border-bottom-color: var(--color-accent-light);
}

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

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

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

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

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

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

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

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

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

.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(217, 70, 239, 0.2);
}

.prose table thead {
  background: var(--color-dark-700);
}

.prose table th {
  padding: 1rem;
  text-align: left;
  color: #f3f4f6;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(217, 70, 239, 0.3);
}

.prose table td {
  padding: 1rem;
  color: #d1d5db;
  border-bottom: 1px solid var(--color-dark-600);
}

.prose table tbody tr {
  transition: background 0.2s var(--transition-smooth);
}

.prose table tbody tr:hover {
  background: rgba(217, 70, 239, 0.05);
}

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

/* Blockquotes */
.prose blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(6, 182, 212, 0.05));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #e5e7eb;
}

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

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

/* Code */
.prose code {
  background: var(--color-dark-700);
  color: var(--color-accent-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.prose pre {
  background: var(--color-dark-800);
  border: 1px solid var(--color-dark-600);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
  margin: 3rem 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(217, 70, 239, 0.2);
}

.prose figure {
  margin: 2rem 0;
}

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

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

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

.prose dd {
  color: #d1d5db;
  margin-left: 1.5rem;
  margin-top: 0.25rem;
}

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

/* ------------------------------------------------
   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 blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
  }

  .prose blockquote::before {
    font-size: 2rem;
    left: 0.5rem;
  }

  .prose table th,
  .prose table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* ------------------------------------------------
   SPECIAL ELEMENTS
   ------------------------------------------------ */

/* Highlight Box */
.prose .highlight-box {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Warning Box */
.prose .warning-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Info Box */
.prose .info-box {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* ------------------------------------------------
   GLOW EFFECTS
   ------------------------------------------------ */
.glow-primary {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.3);
}

.glow-accent {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* ------------------------------------------------
   MOTION REDUCED PREFERENCES
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
