/* Custom Animations & Overrides */

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

/* Hide Scrollbar for Carousel */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Wiggle Animation */
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

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

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

.floating-section {
  animation: float 4s ease-in-out infinite;
}

/* CTA Pulse Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6);
  }
}

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

/* 3D Category Buttons */
.category-3d {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.category-3d:active {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  transform: translateY(2px);
}

/* Provider Glow Effect */
@keyframes soft-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(200, 230, 201, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(129, 199, 132, 0.8);
  }
}

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

/* Parallax Effect */
@keyframes parallax {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Prose Styling for Better Readability */
.prose-custom {
  line-height: 1.7;
}

.prose-custom p {
  margin-bottom: 1rem;
  color: #374151;
  font-size: 1rem;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3 {
  font-weight: 800;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-custom h1 {
  font-size: 2.5rem;
}

.prose-custom h2 {
  font-size: 2rem;
}

.prose-custom h3 {
  font-size: 1.5rem;
}

.prose-custom ul,
.prose-custom ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: #16a34a;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

.prose-custom code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose-custom blockquote {
  border-left: 4px solid #ffd700;
  padding-left: 1rem;
  font-style: italic;
  color: #6b7280;
  margin: 1.5rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom th,
.prose-custom td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.prose-custom th {
  background-color: #f9fafb;
  font-weight: 700;
}

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

details[open] summary span:last-child {
  transform: rotate(45deg);
  transition: transform 0.3s;
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
  .prose-custom h1 {
    font-size: 2rem;
  }

  .prose-custom h2 {
    font-size: 1.75rem;
  }

  .prose-custom h3 {
    font-size: 1.25rem;
  }
}

/* Button Hover Effects */
a[href="/play"]:hover {
  animation: wiggle 0.5s ease-in-out;
}

/* Smooth Transitions */
* {
  transition: transform 0.2s ease-in-out;
}
