/* ============================================
   AMUN RA CASINO - CUSTOM STYLES
   Solar Legacy Crowned Theme
   ============================================ */

/* === BASE RESETS === */
html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* === ANIMATIONS === */

/* Particle Float Animation */
@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30vh) translateX(10vw) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60vh) translateX(-5vw) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-80vh) translateX(15vw) scale(1.1);
    opacity: 0.6;
  }
}

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

/* Slow Pulse for Background Elements */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Solar Flare Rotation */
@keyframes solar-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* === ANIMATION CLASSES === */
.animate-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

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

.animate-solar-rotate {
  animation: solar-rotate 60s linear infinite;
}

/* === PARTICLE SYSTEM === */
.particles-container {
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #d4af37, #ffbf00);
  border-radius: 50%;
  animation: particle-float 15s ease-in-out infinite;
  box-shadow: 0 0 1rem rgba(212, 175, 55, 0.5);
}

.particle-1 {
  left: 10%;
  bottom: 0;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle-2 {
  left: 25%;
  bottom: 0;
  animation-delay: 2s;
  animation-duration: 22s;
  width: 0.375rem;
  height: 0.375rem;
}

.particle-3 {
  left: 45%;
  bottom: 0;
  animation-delay: 4s;
  animation-duration: 16s;
}

.particle-4 {
  left: 65%;
  bottom: 0;
  animation-delay: 1s;
  animation-duration: 20s;
  width: 0.625rem;
  height: 0.625rem;
}

.particle-5 {
  left: 80%;
  bottom: 0;
  animation-delay: 3s;
  animation-duration: 17s;
  width: 0.375rem;
  height: 0.375rem;
}

.particle-6 {
  left: 92%;
  bottom: 0;
  animation-delay: 5s;
  animation-duration: 21s;
}

/* === PARALLAX EFFECTS === */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* === BURGER MENU ANIMATION === */
#burger-btn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

#burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-btn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* === FAQ ACCORDION === */
.faq-toggle i {
  transition: transform 0.3s ease;
}

.active .faq-toggle i {
  transform: rotate(180deg);
}

.active .faq-content {
  display: block !important;
}

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

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

/* === PROSE STYLING FOR MARKDOWN CONTENT === */
.prose {
  color: rgba(255, 248, 231, 0.85);
  line-height: 1.7;
  font-size: 1rem;
}

.prose h2 {
  font-family: Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff8e7;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #ffbf00);
}

.prose h3 {
  font-family: Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #d4af37;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff8e7;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(255, 248, 231, 0.8);
}

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

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

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

.prose em {
  font-style: italic;
  color: rgba(255, 248, 231, 0.9);
}

/* Prose 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: rgba(255, 248, 231, 0.8);
}

.prose ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #d4af37;
  font-size: 0.625rem;
  top: 0.375rem;
}

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

.prose ol li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.625rem;
  counter-increment: prose-counter;
  color: rgba(255, 248, 231, 0.8);
}

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

/* Prose Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.prose thead {
  background: rgba(212, 175, 55, 0.1);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  color: #d4af37;
  font-weight: 600;
  font-family: Georgia, serif;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose td {
  padding: 0.875rem 1rem;
  color: rgba(255, 248, 231, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

/* Prose Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(26, 10, 46, 0.6), rgba(18, 7, 31, 0.6));
  border-left: 4px solid #d4af37;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: rgba(255, 248, 231, 0.9);
}

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Prose Code */
.prose code {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(26, 10, 46, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: rgba(255, 248, 231, 0.85);
}

/* Prose Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  margin: 2.5rem 0;
}

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

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

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

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

/* === SELECTION STYLING === */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #fff8e7;
}

/* === FOCUS STATES === */
a:focus,
button:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }

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

  .prose {
    font-size: 0.9375rem;
  }
}

/* === GAME CARD HOVER EFFECTS === */
@media (hover: hover) {
  .group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
  }
}

/* === SMOOTH TRANSITIONS === */
* {
  scroll-behavior: smooth;
}

/* === PREVENT LAYOUT SHIFT === */
img {
  max-width: 100%;
  height: auto;
}

/* === PROSE AMUNRA VARIANT === */
.prose-amunra {
  --tw-prose-body: rgba(255, 248, 231, 0.85);
  --tw-prose-headings: #fff8e7;
  --tw-prose-links: #d4af37;
  --tw-prose-bold: #fff8e7;
  --tw-prose-counters: #d4af37;
  --tw-prose-bullets: #d4af37;
  --tw-prose-hr: rgba(212, 175, 55, 0.3);
  --tw-prose-quotes: rgba(255, 248, 231, 0.9);
  --tw-prose-quote-borders: #d4af37;
  --tw-prose-code: #d4af37;
  --tw-prose-th-borders: rgba(212, 175, 55, 0.2);
  --tw-prose-td-borders: rgba(212, 175, 55, 0.1);
}
