/* Animation Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

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

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
  width: 200%;
}

.marquee-content > * {
  flex-shrink: 0;
}

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: "";
  display: flex;
  flex: 1;
}

/* Prose Styling for Readability */
.prose-custom {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.prose-custom h2 {
  color: #fff;
  font-weight: 900;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.2;
}

.prose-custom h3 {
  color: #fff;
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose-custom p {
  margin-bottom: 1.25em;
}

.prose-custom a {
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #ec4899;
}

.prose-custom ul {
  list-style: none;
  padding-left: 0;
}

.prose-custom li {
  margin-bottom: 0.75em;
}

.prose-custom strong {
  color: #fff;
  font-weight: 700;
}

.prose-custom table {
  width: 100%;
  margin: 2em 0;
}

.prose-custom th {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.prose-custom td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

/* Inner Page H1 Titles */
.page-title h1{
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 2rem 0 1.5rem 0;
  background: linear-gradient(135deg, #FCD34D, #F97316, #EC4899);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
}

.page-title::after h1 {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #F97316, #EC4899);
  border-radius: 0.125rem;
}

/* Responsive H1 Titles */
@media (max-width: 768px) {
  .page-title h1{
    font-size: 2rem;
    margin: 1.5rem 0 1rem 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-title h1{
    font-size: 3rem;
  }
}

@media (min-width: 1025px) {
  .page-title h1{
    font-size: 3.5rem;
  }
}

/* Alternative H1 Style for Content Pages */
.content-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.5rem 0 1rem 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-left: 0.25rem solid #F97316;
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .content-title {
    font-size: 1.75rem;
    margin: 1rem 0 0.75rem 0;
    padding-left: 0.75rem;
  }
}

/* Gaming Section H1 Style */
.gaming-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 2rem 0 1.25rem 0;
  background: linear-gradient(135deg, #8B5CF6, #EC4899, #06B6D4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.gaming-title::before {
  content: '🎰';
  position: absolute;
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.gaming-title::after {
  content: '🎰';
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

@media (max-width: 768px) {
  .gaming-title {
    font-size: 2rem;
    margin: 1.25rem 0 0.75rem 0;
    letter-spacing: 0.025em;
  }
  
  .gaming-title::before,
  .gaming-title::after {
    display: none;
  }
}

/* Game Card Hover Effects */
.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8b5cf6, #ec4899);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #7c3aed, #db2777);
}

/* Details/Summary Styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1rem;
}

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

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
details:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Mobile Overflow Prevention */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* Ensure all containers respect viewport width */
.container {
  max-width: 100%;
}

/* Ensure containers never exceed viewport */
.container {
  max-width: 100% !important;
  width: 100% !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  /* Prevent text from causing overflow */
  h1, h2, h3, h4, h5, h6, p, div, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Ensure no elements extend beyond viewport */
  .marquee-container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Fix any potential padding/margin issues */
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Ensure flex containers don't overflow */
  .flex {
    min-width: 0;
  }
  
  /* Force all sections to respect viewport width */
  section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Ensure all divs respect viewport */
  div {
    max-width: 100% !important;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }
}
