/* ================================================
   REELDUCK CASINO - Custom Styles
   Duck Dash Pop Alpine Theme
   ================================================ */

/* -------------------- Base Reset -------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* -------------------- Particle Animations -------------------- */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle-2 {
  left: 25%;
  top: 60%;
  animation-delay: 2s;
  animation-duration: 18s;
}

.particle-3 {
  left: 50%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 14s;
}

.particle-4 {
  left: 75%;
  top: 70%;
  animation-delay: 1s;
  animation-duration: 16s;
}

.particle-5 {
  left: 90%;
  top: 40%;
  animation-delay: 3s;
  animation-duration: 20s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-2rem) translateX(1rem) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-4rem) translateX(-0.5rem) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-2rem) translateX(1.5rem) scale(1.1);
    opacity: 0.7;
  }
}

/* -------------------- Tilt Animation -------------------- */
.tilt-element {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

.tilt-element:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* -------------------- 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: #e0f2fe;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #e0f2fe;
  font-size: 1.75em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(13, 148, 136, 0.3);
}

.prose h3 {
  color: #99f6e4;
  font-size: 1.375em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #e0f2fe;
  font-size: 1.125em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: rgba(224, 242, 254, 0.85);
}

.prose a {
  color: #06b6d4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #99f6e4;
}

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

.prose em {
  color: rgba(224, 242, 254, 0.9);
  font-style: italic;
}

/* Lists */
.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: rgba(224, 242, 254, 0.85);
  padding-left: 0.375em;
}

.prose li::marker {
  color: #0d9488;
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
}

.prose thead {
  background-color: #1e293b;
  border-bottom: 2px solid rgba(13, 148, 136, 0.4);
}

.prose th {
  color: #99f6e4;
  font-weight: 600;
  text-align: left;
  padding: 0.875em 1em;
}

.prose td {
  padding: 0.875em 1em;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  color: rgba(224, 242, 254, 0.8);
}

.prose tbody tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.3);
}

.prose tbody tr:hover {
  background-color: rgba(13, 148, 136, 0.1);
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid #0d9488;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: rgba(224, 242, 254, 0.75);
  background-color: rgba(30, 41, 59, 0.4);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
}

/* Code */
.prose code {
  background-color: rgba(30, 41, 59, 0.6);
  color: #06b6d4;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background-color: #1e293b;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: 0.875em;
  color: #e0f2fe;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 2px solid rgba(13, 148, 136, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* First paragraph styling */
.prose > p:first-of-type {
  font-size: 1.125em;
  color: rgba(224, 242, 254, 0.9);
  line-height: 1.7;
}

/* -------------------- Scrollbar Styling -------------------- */
::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}

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

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* -------------------- Selection -------------------- */
::selection {
  background-color: rgba(13, 148, 136, 0.4);
  color: #e0f2fe;
}

/* -------------------- Focus States -------------------- */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* -------------------- Skip to content -------------------- */
.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 0;
  background: #0d9488;
  color: #0f172a;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* -------------------- Animations -------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  body {
    background: white;
    color: black;
  }

  .prose {
    color: black;
  }

  .prose h2,
  .prose h3,
  .prose h4 {
    color: black;
  }
}
