/* Parallax Background Animation */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.parallax-bg {
  animation: parallax-float 20s ease-in-out infinite;
}

/* Chrome Shapes Animation */
@keyframes chrome-pulse {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2) rotate(180deg);
  }
}

.chrome-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.1));
  filter: blur(60px);
  animation: chrome-pulse 15s ease-in-out infinite;
}

.chrome-shape-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.chrome-shape-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: 10%;
  animation-delay: 5s;
}

.chrome-shape-3 {
  width: 350px;
  height: 350px;
  bottom: 10%;
  left: 40%;
  animation-delay: 10s;
}

/* Marquee Animation for Game Providers */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: fit-content;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Prose Styling for Readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #c0c0c0;
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #e8e8e8;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.prose h2 {
  font-size: 2rem;
  border-bottom: 0.125rem solid rgba(220, 20, 60, 0.3);
  padding-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.5rem;
  color: #ffd700;
}

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

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

.prose h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose a {
  color: #ffd700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #e8e8e8;
  text-decoration-color: #e8e8e8;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
  color: #c0c0c0;
}

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

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

.prose li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

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

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

.prose strong,
.prose b {
  color: #e8e8e8;
  font-weight: 700;
}

.prose em,
.prose i {
  font-style: italic;
  color: #c0c0c0;
}

.prose blockquote {
  border-left: 0.25rem solid #dc143c;
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: #c0c0c0;
  font-style: italic;
  background: rgba(220, 20, 60, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0.25rem;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

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

.prose code {
  background-color: #2d2d2d;
  color: #ffd700;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background-color: #2d2d2d;
  color: #e8e8e8;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
  border: 0.0625rem solid rgba(220, 20, 60, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
}

/* Enhanced table styling with responsive wrapper */
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  background-color: rgba(45, 45, 45, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.3));
}

.prose th,
.prose td {
  padding: 0.75em 1em;
  border: 0.0625rem solid rgba(220, 20, 60, 0.2);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: #e8e8e8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.prose td {
  color: #c0c0c0;
}

.prose tbody tr:hover {
  background-color: rgba(220, 20, 60, 0.1);
}

/* Table responsive wrapper with overflow */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5em;
  border-radius: 0.5rem;
}

.prose .table-responsive table {
  margin-bottom: 0;
}

/* Image styling with max-width */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em 0;
  display: block;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
  border: 0.125rem solid rgba(220, 20, 60, 0.3);
}

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  color: #c0c0c0;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.75em;
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 0.125rem solid rgba(220, 20, 60, 0.3);
  margin: 2em 0;
}

/* Responsive typography adjustments */
@media (max-width: 1024px) {
  .prose h1 {
    font-size: 2.25rem;
  }

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

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

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

  .prose h1 {
    font-size: 2rem;
  }

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

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

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

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

  .prose blockquote {
    padding-left: 1em;
    padding-right: 0.75em;
  }

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

@media (max-width: 480px) {
  .prose h1 {
    font-size: 1.75rem;
  }

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

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

  .prose th,
  .prose td {
    padding: 0.5em;
    font-size: 0.8125rem;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, opacity, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Ensure proper contrast */
.bg-titan-chrome,
.bg-titan-chrome-dark,
.bg-titan-chrome-mid {
  color: #e8e8e8;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .prose-custom h1 {
    font-size: 2rem;
  }

  .prose-custom h2 {
    font-size: 1.75rem;
  }

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

  .prose-custom p {
    font-size: 0.95rem;
  }
}
