/* Keyframe Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

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

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Animation Classes */
.bounce-animation {
  animation: bounce 2s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.wiggle-animation {
  animation: wiggle 1.5s ease-in-out infinite;
}

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

/* Particle System */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #FF6B9D, #FFC93D);
  border-radius: 50%;
  animation: particle-float linear infinite;
  opacity: 0;
}

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

/* Prose Styling for Markdown Content */
.prose {
  color: #2D1B3D;
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose h2 {
  color: #2D1B3D;
  font-weight: 800;
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .prose h2 {
    font-size: 2.25rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }
}

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

@media (min-width: 1024px) {
  .prose h3 {
    font-size: 1.75rem;
  }
}

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

.prose p {
  margin-bottom: 1.5rem;
  color: #4B5563;
  line-height: 1.8;
}

.prose strong {
  color: #2D1B3D;
  font-weight: 700;
}

.prose a {
  color: #FF6B9D;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

@media (min-width: 1024px) {
  .prose ul,
  .prose ol {
    padding-left: 2rem;
  }
}

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

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

.prose li {
  margin-bottom: 0.75rem;
  color: #4B5563;
  line-height: 1.75;
}

.prose li::marker {
  color: #FF6B9D;
  font-weight: 600;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-collapse: collapse;
  background-color: #FFF5F8;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prose thead {
  background: linear-gradient(to right, #FF6B9D, #7B61FF);
}

.prose thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: white;
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .prose thead th {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}

.prose tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E5E7EB;
  color: #2D1B3D;
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .prose tbody td {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}

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

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

.prose blockquote {
  border-left: 0.375rem solid #FFC93D;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4B5563;
  background-color: #FFF5F8;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  border-radius: 0.5rem;
}

@media (min-width: 1024px) {
  .prose blockquote {
    padding-left: 2rem;
    padding-right: 1.5rem;
  }
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
  .prose img {
    margin: 2.5rem 0;
  }
}

.prose code {
  background-color: #FFF5F8;
  color: #7B61FF;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 600;
}

.prose pre {
  background-color: #2D1B3D;
  color: #FFF5F8;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .prose pre {
    padding: 1.5rem;
  }
}

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

.prose hr {
  border: none;
  border-top: 0.125rem solid #E5E7EB;
  margin: 3rem 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  margin: 1.5rem 0;
}

/* Ensure tables never have overflow-hidden */
table {
  overflow-x: visible !important;
}

/* Mobile Menu Background Fix */
#mobile-menu {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #FF6B9D, #7B61FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
