/* Keyframe Animations */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 1rem rgba(6, 182, 212, 0.3), 0 0 2rem rgba(6, 182, 212, 0.15);
  }
  50% {
    box-shadow: 0 0 1.5rem rgba(6, 182, 212, 0.5), 0 0 3rem rgba(6, 182, 212, 0.25);
  }
}

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

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

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

.glow-card {
  transition: all 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 0 2rem rgba(6, 182, 212, 0.4), 0 0 4rem rgba(6, 182, 212, 0.2);
  transform: translateY(-0.25rem);
}

.glow-card-hover:hover {
  box-shadow: 0 0 1.5rem rgba(6, 182, 212, 0.5), 0 0 3rem rgba(6, 182, 212, 0.25);
  transform: translateY(-0.5rem);
}

/* Casino Pattern Background */
.casino-pattern {
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 2rem, rgba(6, 182, 212, 0.03) 2rem, rgba(6, 182, 212, 0.03) 4rem),
    repeating-linear-gradient(-45deg, transparent, transparent 2rem, rgba(34, 211, 238, 0.03) 2rem, rgba(34, 211, 238, 0.03) 4rem);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background: linear-gradient(to bottom, #1e1b4b, #0f0e27);
}

.mobile-menu.active {
  max-height: 25rem;
}

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

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

.prose h2 {
  color: #06b6d4;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  background: linear-gradient(to right, #ffffff, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.prose p {
  color: #d1d5db;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

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

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

.prose a {
  color: #06b6d4;
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #22d3ee;
  text-decoration-color: rgba(34, 211, 238, 0.8);
}

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

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

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

.prose li {
  color: #d1d5db;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.625rem;
}

.prose li::marker {
  color: #06b6d4;
}

.prose ul ul,
.prose ol ul {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.prose ul ol,
.prose ol ol {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.prose blockquote {
  border-left: 0.25rem solid #06b6d4;
  padding-left: 1.5rem;
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  font-style: italic;
  color: #e5e7eb;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.05), transparent);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  overflow-x: auto;
  display: block;
  background: linear-gradient(to bottom right, rgba(30, 27, 75, 0.6), rgba(15, 14, 39, 0.6));
  border: 0.0625rem solid rgba(6, 182, 212, 0.3);
  border-radius: 0.75rem;
}

.prose thead {
  background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.2));
  border-bottom: 0.0625rem solid rgba(6, 182, 212, 0.3);
}

.prose th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1rem 1.5rem;
  border-top: 0.0625rem solid rgba(107, 114, 128, 0.3);
  color: #d1d5db;
  font-size: 1rem;
}

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

.prose tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  border: 0.0625rem solid rgba(6, 182, 212, 0.2);
}

.prose code {
  background: rgba(30, 27, 75, 0.8);
  color: #22d3ee;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  border: 0.0625rem solid rgba(6, 182, 212, 0.3);
}

.prose pre {
  background: rgba(15, 14, 39, 0.9);
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  border: 0.0625rem solid rgba(6, 182, 212, 0.3);
}

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

.prose hr {
  border: none;
  border-top: 0.0625rem solid rgba(6, 182, 212, 0.3);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Responsive Typography Adjustments */
@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

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

  .prose p,
  .prose li {
    font-size: 1rem;
  }

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}

::-webkit-scrollbar-track {
  background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #06b6d4, #22d3ee);
  border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #22d3ee, #06b6d4);
}
