/* ================================
   Rumwin Casino - Custom Styles
   Rumwave Ember Theme
   ================================ */

/* --------------------------------
   CSS Custom Properties
   -------------------------------- */
:root {
  --ember-400: #fb923c;
  --ember-500: #f97316;
  --ember-600: #ea580c;
  --tropical-sunset: #ffa502;
  --tropical-coral: #ff6b6b;
  --tropical-palm: #2ed573;
  --dark-900: #0f0a15;
  --dark-800: #1a1225;
  --dark-700: #251a35;
}

/* --------------------------------
   Global Overflow Control
   -------------------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

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

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

.particle-1 {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--ember-500), var(--tropical-sunset));
  top: 20%;
  left: 10%;
  animation: particle-float-1 8s ease-in-out infinite;
}

.particle-2 {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--tropical-coral);
  top: 60%;
  left: 80%;
  animation: particle-float-2 10s ease-in-out infinite;
}

.particle-3 {
  width: 0.625rem;
  height: 0.625rem;
  background: linear-gradient(135deg, var(--tropical-sunset), var(--ember-400));
  top: 40%;
  left: 30%;
  animation: particle-float-3 12s ease-in-out infinite;
}

.particle-4 {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--ember-400);
  top: 80%;
  left: 50%;
  animation: particle-float-4 9s ease-in-out infinite;
}

.particle-5 {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, var(--tropical-coral), var(--ember-500));
  top: 30%;
  left: 70%;
  animation: particle-float-5 11s ease-in-out infinite;
}

.particle-6 {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--tropical-sunset);
  top: 70%;
  left: 20%;
  animation: particle-float-6 7s ease-in-out infinite;
}

@keyframes particle-float-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(3.125rem, -1.875rem) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(1.25rem, -3.75rem) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(-1.25rem, -1.25rem) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes particle-float-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translate(-2.5rem, 1.875rem) scale(1.3);
    opacity: 0.7;
  }
  66% {
    transform: translate(-1.25rem, -2.5rem) scale(0.8);
    opacity: 0.4;
  }
}

@keyframes particle-float-3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(1.875rem, -2.5rem) rotate(180deg);
    opacity: 0.8;
  }
}

@keyframes particle-float-4 {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-3.125rem) scale(1.5);
    opacity: 0.9;
  }
}

@keyframes particle-float-5 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  25% {
    transform: translate(-1.875rem, -1.25rem);
    opacity: 0.4;
  }
  75% {
    transform: translate(1.25rem, -2.5rem);
    opacity: 0.8;
  }
}

@keyframes particle-float-6 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(2.5rem, 1.25rem) scale(1.2);
    opacity: 0.7;
  }
}

/* --------------------------------
   Parallax Effects
   -------------------------------- */
.parallax-slow {
  transform: translateZ(-2px) scale(3);
}

.parallax-medium {
  transform: translateZ(-1px) scale(2);
}

/* --------------------------------
   Glow Animation
   -------------------------------- */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(249, 115, 22, 0.5), 0 0 3.75rem rgba(255, 165, 2, 0.3);
  }
}

.glow-effect {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* --------------------------------
   FAQ Styling
   -------------------------------- */
.faq-item.active .faq-content {
  display: block;
}

.faq-item.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* --------------------------------
   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: #d1d5db;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #ffffff;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(249, 115, 22, 0.3);
  background: linear-gradient(90deg, #fb923c, #ffa502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  color: #f3f4f6;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.prose a {
  color: #fb923c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

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

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

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

/* Prose Lists */
.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: #d1d5db;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #f97316, #ffa502);
  border-radius: 50%;
}

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

.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  counter-increment: prose-counter;
  color: #d1d5db;
}

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

/* Prose Blockquote */
.prose blockquote {
  border-left: 4px solid #f97316;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.1), transparent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #e5e7eb;
}

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

/* Prose Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.prose table thead {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(255, 165, 2, 0.1));
}

.prose table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #fb923c;
  border-bottom: 2px solid rgba(249, 115, 22, 0.3);
  white-space: nowrap;
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
  color: #d1d5db;
}

.prose table tbody tr {
  transition: background-color 0.2s ease;
}

.prose table tbody tr:hover {
  background: rgba(249, 115, 22, 0.05);
}

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

/* Prose Code */
.prose code {
  background: rgba(249, 115, 22, 0.15);
  color: #fbbf24;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: #1a1225;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

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

/* --------------------------------
   Burger Menu Animation
   -------------------------------- */
.burger-line {
  transition: all 0.3s ease;
}

/* --------------------------------
   Scroll Behavior
   -------------------------------- */
html {
  scroll-behavior: smooth;
}

/* --------------------------------
   Selection Styling
   -------------------------------- */
::selection {
  background: rgba(249, 115, 22, 0.3);
  color: #ffffff;
}

/* --------------------------------
   Focus Styles (Accessibility)
   -------------------------------- */
:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 2px;
}

/* --------------------------------
   Mobile Optimizations
   -------------------------------- */
@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.375rem;
  }

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

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

  .prose table th,
  .prose table td {
    padding: 0.625rem 0.75rem;
  }
}

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

  body {
    background: white;
    color: black;
  }

  .prose {
    color: #1a1a1a;
  }

  .prose a {
    color: #0066cc;
  }
}
