/* Custom CSS for GraalRealm Casino Theme */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow: auto;
}

body {
  overflow: auto;
}

/* Floating Particles Animation */
.particles-container {
  position: relative;
  overflow: hidden;
}

.particles-container::before,
.particles-container::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #10b981, #f59e0b);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.particles-container::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particles-container::after {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

/* Additional floating particles */
.particles-container {
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(16, 185, 129, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(245, 158, 11, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(16, 185, 129, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(245, 158, 11, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 8s linear infinite;
}

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

@keyframes sparkle {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 200px 100px, -200px -100px, 200px -100px, -200px 100px, 200px 100px;
  }
}

/* Marquee Animation for Game Strip */
.marquee {
  animation: marquee 20s linear infinite;
}

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

/* Tilt Animation for Cards */
.tilt-card {
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Emerald Fortune Theme Enhancements */
.emerald-glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.gold-glow {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.sapphire-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Gemstone Border Effect */
.gemstone-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #10b981, #f59e0b, #3b82f6) border-box;
  border-radius: 12px;
}

.gemstone-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(45deg, #10b981, #f59e0b, #3b82f6);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

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

.prose h2 {
  color: #10b981;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.2;
  border-bottom: 2px solid #10b981;
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #f59e0b;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h4 {
  color: #3b82f6;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 1.25em 0;
  padding-left: 2em;
  color: #d1d5db;
}

.prose li {
  margin: 0.5em 0;
  line-height: 1.6;
}

.prose li::marker {
  color: #10b981;
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

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

.prose a {
  color: #10b981;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.prose blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(16, 185, 129, 0.05);
  padding: 1em 1.5em;
  border-radius: 0 8px 8px 0;
}

.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(135deg, #10b981, #059669);
}

.prose table th {
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid #374151;
}

.prose table td {
  padding: 0.75em 1em;
  border: 1px solid #374151;
  color: #d1d5db;
  background: rgba(0, 0, 0, 0.3);
}

.prose table tr:nth-child(even) td {
  background: rgba(16, 185, 129, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive prose styling for mobile devices */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9rem;
    line-height: 1.5;
  }

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

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

  .prose h4 {
    font-size: 1.125rem;
    margin-top: 1.25em;
  }

  .prose p {
    margin-bottom: 1em;
  }

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

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

  .prose table th,
  .prose table td {
    padding: 0.5em 0.75em;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .particles-container {
    background-size: 100px 50px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .prose {
    color: #ffffff;
  }

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .particles-container,
  .marquee,
  .tilt-card,
  .btn-emerald,
  .btn-gold {
    animation: none;
    transition: none;
  }

  .particles-container::before,
  .particles-container::after {
    animation: none;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .particles-container,
  header,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .prose {
    color: black;
  }
}
