/* Custom animations and styling */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.6);
  }
}

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

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes countdown {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.floating-hero {
  animation: float 6s ease-in-out infinite;
}

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

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

.progress-animation {
  animation: progress 3s ease-in-out forwards;
}

.countdown-animation {
  animation: countdown 1s ease-in-out infinite;
}

/* Scrollbar styling */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Prose styling for better readability */
.prose {
  color: #d1d5db;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose h2 {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.875em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.prose h3 {
  color: #fbbf24;
  font-weight: 600;
  font-size: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #93c5fd;
}

.prose code {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.875em;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #d1d5db;
  border-left-width: 0.25rem;
  border-left-color: #fbbf24;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

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

/* Custom gradient backgrounds */
.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(250, 204, 21, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-pattern-grid {
  background-image: linear-gradient(rgba(250, 204, 21, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Text balance for better typography */
.text-balance {
  text-wrap: balance;
}

/* Details/Summary styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  float: right;
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Table responsive styling */
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.5rem !important;
  }
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}
