/* ================================================
   Reelduck Casino - Custom CSS
   Theme: Duck Dash Pop DE
   ================================================ */

/* ------------------------------------------------
   Keyframe Animations
   ------------------------------------------------ */

/* Particle Float Animation */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
  }
  50% {
    box-shadow: 0 0 1.5rem 0.5rem rgba(212, 168, 83, 0.2);
  }
}

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

/* ------------------------------------------------
   Particle Styles
   ------------------------------------------------ */

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #d4a853, #b8923f);
  border-radius: 50%;
  animation: particleFloat 10s linear infinite;
  pointer-events: none;
}

.particle:nth-child(odd) {
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(74, 124, 124, 0.6);
}

.particle:nth-child(3n) {
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(217, 123, 107, 0.5);
}

/* ------------------------------------------------
   Animation Utility Classes
   ------------------------------------------------ */

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* ------------------------------------------------
   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: #3d4f63;
  line-height: 1.75;
  font-size: 1rem;
}

/* Headings */
.prose h2 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e2a3a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid #d4a853;
}

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

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

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  text-align: left;
}

.prose p:first-of-type {
  font-size: 1.0625rem;
}

/* Links */
.prose a {
  color: #4a7c7c;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #5a9a9a;
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.prose li::marker {
  color: #d4a853;
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid #d4a853;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #3d4f63;
  background-color: #f5f0e6;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(30, 42, 58, 0.1);
}

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

.prose thead {
  background-color: #1e2a3a;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #f5f0e6;
  font-family: Georgia, serif;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid #e8e0d0;
  color: #3d4f63;
}

.prose tbody tr:hover {
  background-color: #f5f0e6;
}

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

/* Code */
.prose code {
  background-color: #e8e0d0;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #1e2a3a;
}

.prose pre {
  background-color: #1e2a3a;
  color: #f5f0e6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.25rem 1rem rgba(30, 42, 58, 0.15);
}

/* Horizontal Rules */
.prose hr {
  border: none;
  border-top: 0.125rem solid #e8e0d0;
  margin: 2rem 0;
}

/* Strong and Emphasis */
.prose strong {
  font-weight: 700;
  color: #1e2a3a;
}

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

/* ------------------------------------------------
   Details/Summary (FAQ Styling)
   ------------------------------------------------ */

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

details[open] summary {
  border-bottom: 0.0625rem solid #e8e0d0;
}

/* ------------------------------------------------
   Custom Scrollbar
   ------------------------------------------------ */

::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #e8e0d0;
}

::-webkit-scrollbar-thumb {
  background: #8a9aad;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d4f63;
}

/* ------------------------------------------------
   Selection Styling
   ------------------------------------------------ */

::selection {
  background-color: #d4a853;
  color: #1e2a3a;
}

/* ------------------------------------------------
   Focus Styles for Accessibility
   ------------------------------------------------ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0.125rem solid #d4a853;
  outline-offset: 0.125rem;
}

/* ------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------ */

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

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

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

  .prose h4 {
    font-size: 1.0625rem;
  }

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

/* ------------------------------------------------
   Utility Overrides
   ------------------------------------------------ */

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}
