/* Crystal Jackpot Theme Custom Styles */

/* Crystal Glow Effect */
.crystal-glow {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Crystal Prism Effect */
.crystal-prism {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(30, 58, 138, 0.1) 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.2);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.crystal-prism:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

/* Floating Diamonds Animation */
.floating-diamonds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.diamond-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #8b5cf6, #3b82f6);
  transform: rotate(45deg);
  animation: float-diamond 6s infinite ease-in-out;
  opacity: 0.7;
}

.diamond-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.diamond-particle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.diamond-particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float-diamond {
  0%,
  100% {
    transform: rotate(45deg) translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: rotate(45deg) translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* Marquee Animation */
.marquee-container {
  position: relative;
}

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

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

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

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover img {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Parallax Effect for Hero Section */
.hero-parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Button Hover Effects */
.btn-crystal {
  position: relative;
  overflow: hidden;
}

.btn-crystal::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-crystal:hover::before {
  left: 100%;
}

/* Enhanced prose styling for markdown content readability */
.prose {
  color: #e5e7eb;
  line-height: 1.7;
  max-width: 100%;
}

.prose p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
  margin-bottom: 0.8888889rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #a855f7;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #c084fc;
}

.prose h4 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #ddd6fe;
}

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose li::marker {
  color: #8b5cf6;
}

.prose a {
  color: #8b5cf6;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #a855f7;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.prose strong {
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(248, 250, 252, 0.3);
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #d1d5db;
  border-left: 4px solid #8b5cf6;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 0 8px 8px 0;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin: 2rem 0;
  font-size: 0.875rem;
  line-height: 1.7142857;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
    white-space: normal;
  }
}

.prose thead {
  border-bottom: 2px solid #374151;
  background: rgba(139, 92, 246, 0.1);
}

.prose thead th {
  color: #f8fafc;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75rem 1rem;
  text-align: left;
  border-right: 1px solid rgba(139, 92, 246, 0.2);
}

.prose thead th:last-child {
  border-right: none;
}

.prose tbody tr {
  border-bottom: 1px solid #374151;
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.prose tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.3);
}

.prose tbody td {
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(55, 65, 81, 0.5);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
  border: 2px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.prose img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

/* Responsive prose adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9rem;
  }

  .prose h1 {
    font-size: 1.875rem;
  }

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

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

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

  .prose thead th,
  .prose tbody td {
    padding: 0.5rem 0.75rem;
  }
}

/* Print styles for prose content */
@media print {
  .prose {
    color: #000;
  }

  .prose h1,
  .prose h2,
  .prose h3,
  .prose h4 {
    color: #000;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
  }

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

  .prose img {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  .crystal-glow {
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.5), 0 0 10px rgba(139, 92, 246, 0.3);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .crystal-prism {
    border-color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
  }

  .crystal-glow {
    text-shadow: none;
    color: #ffffff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }

  .floating-diamonds .diamond-particle {
    animation: none;
  }

  .crystal-prism {
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
