/* Animations & Keyframes */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6), 0 0 60px rgba(124, 58, 237, 0.3);
  }
}

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

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

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

.game-card {
  transition: transform 0.3s ease;
}

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

/* Tech Pattern Background */
.tech-pattern {
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 217, 255, 0.03) 2px, rgba(0, 217, 255, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 217, 255, 0.03) 2px, rgba(0, 217, 255, 0.03) 4px);
  background-size: 50px 50px;
}

/* Parallax Effect */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

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

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
}

/* Burger Menu Animation */
#burger.open .fa-bars::before {
  content: "\f00d";
}

/* Prose Styling for Markdown Content */
.prose {
  color: #d1d5db;
  max-width: 100%;
}

.prose h2 {
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, #00d9ff, #7c3aed);
  border-radius: 2px;
}

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

.prose p {
  color: #d1d5db;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

.prose a {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.prose a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.prose ul, .prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
  color: #d1d5db;
}

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

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

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.prose li::marker {
  color: #00d9ff;
}

.prose blockquote {
  border-left: 4px solid #00d9ff;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(0, 217, 255, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

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

.prose thead {
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.15), rgba(124, 58, 237, 0.15));
  border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  color: #d1d5db;
}

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

.prose tbody tr:hover {
  background-color: rgba(0, 217, 255, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose code {
  background-color: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #161b2e;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #d1d5db;
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.625rem;
    margin-top: 2rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .prose p, .prose li {
    font-size: 1rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th, .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Focus Styles for Accessibility */
.prose a:focus,
button:focus,
details:focus {
  outline: 2px solid #00d9ff;
  outline-offset: 2px;
}

/* Details/Summary Styling */
details summary {
  transition: color 0.2s ease;
}

details[open] summary i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

details summary i {
  transition: transform 0.3s ease;
}
