/* ===== ANIMATIONS & KEYFRAMES ===== */

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.8), 0 0 30px rgba(34, 211, 238, 0.5);
  }
}

@keyframes glow-box {
  0%, 100% {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4), 0 0 30px rgba(34, 211, 238, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6), 0 0 50px rgba(34, 211, 238, 0.3);
  }
}

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

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

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

.glow-cyan {
  animation: glow-box 3s ease-in-out infinite;
}

.bonus-badge {
  animation: float 4s ease-in-out infinite;
}

/* ===== PARTICLES ===== */

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(34, 211, 238, 0.6);
  border-radius: 50%;
  animation: particle-float 8s linear infinite;
}

.particles::before {
  left: 20%;
  top: 80%;
  --tx: 100px;
  --ty: -600px;
  animation-delay: 0s;
}

.particles::after {
  left: 80%;
  top: 60%;
  --tx: -150px;
  --ty: -500px;
  animation-delay: 2s;
}

/* ===== HOVER EFFECTS ===== */

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

.btn-primary:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE TABLE ===== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== PROSE STYLING ===== */

.prose {
  color: #a8adb8;
  font-size: 1rem;
  line-height: 1.6;
}

.prose h2 {
  color: #22d3ee;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.prose h3 {
  color: #c0c5d0;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose h4 {
  color: #c0c5d0;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #a8adb8;
}

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

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

.prose a {
  color: #22d3ee;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #06b6d4;
}

.prose ul,
.prose ol {
  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;
  line-height: 1.6;
  color: #a8adb8;
}

.prose li::marker {
  color: #22d3ee;
}

.prose blockquote {
  border-left: 0.25rem solid #22d3ee;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #c0c5d0;
  background: rgba(34, 211, 238, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(20, 27, 46, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

.prose thead {
  background: #0f1525;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #22d3ee;
  border-bottom: 2px solid rgba(34, 211, 238, 0.2);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  color: #a8adb8;
}

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

.prose tbody tr:hover {
  background: rgba(34, 211, 238, 0.05);
}

.prose code {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: monospace;
}

.prose pre {
  background: #0f1525;
  color: #c0c5d0;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem auto;
  display: block;
  border: 2px solid rgba(34, 211, 238, 0.2);
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(34, 211, 238, 0.2);
  margin: 3rem 0;
}

/* Typography responsiveness */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.625rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
}

/* Ensure readability - no dark text on dark background */
.prose {
  background: transparent;
}

.prose p,
.prose li,
.prose td {
  color: #a8adb8; /* Silver on navy background */
}

.prose h2,
.prose h3,
.prose strong {
  color: #c0c5d0; /* Lighter silver for emphasis */
}

/* Links should be cyan for visibility */
.prose a {
  color: #22d3ee;
}

/* Ensure tables are scrollable on mobile */
@media (max-width: 768px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
