/* Custom Animations & Effects */

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

.parallax-bg {
  background-size: 200% 200%;
  animation: parallaxMove 20s ease infinite;
}

/* Neko Glow Effect for Hero Image */
@keyframes nekoGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3), 0 0 40px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
  }
}

.neko-glow {
  animation: nekoGlow 3s ease-in-out infinite;
}

/* CTA Button Glow */
@keyframes ctaGlow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.7), 0 0 40px rgba(255, 107, 53, 0.3);
  }
}

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

/* Pulse Animation for Important Elements */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

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

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

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

/* Gradient Text Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text-animate {
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
}

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

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

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

/* Prose Styling for Readability */
.prose-custom {
  line-height: 1.7;
  font-size: 1rem;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  line-height: 1.3;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

.prose-custom p {
  margin-bottom: 1.25rem;
}

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

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

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

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

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

.prose-custom code {
  background-color: rgba(255, 107, 53, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
}

.prose-custom blockquote {
  border-left: 4px solid #ff6b35;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.25rem;
  font-style: italic;
  color: #d1d5db;
}

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

.prose-custom th,
.prose-custom td {
  padding: 0.75rem;
  border: 1px solid rgba(255, 107, 53, 0.2);
  text-align: left;
}

.prose-custom th {
  background-color: rgba(255, 107, 53, 0.1);
  font-weight: 700;
}

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

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

details[open] summary {
  color: #ff6b35;
}

/* Custom Focus States */
a:focus,
button:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Responsive Image Handling */
img {
  max-width: 100%;
  height: auto;
}

/* Transition for All Interactive Elements */
a,
button,
input,
select,
textarea {
  transition: all 0.2s ease-in-out;
}

/* Selection Color */
::selection {
  background-color: #ff6b35;
  color: #fff;
}

::-moz-selection {
  background-color: #ff6b35;
  color: #fff;
}

/* Loading State for Images */
img[loading] {
  background: linear-gradient(90deg, #1a2844 25%, #2a3854 50%, #1a2844 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile Menu Animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Hover Effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

/* Fortune Cat Pattern Background (CSS Pattern) */
.fortune-pattern {
  background-color: #0a1628;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 2%, transparent 2%),
    radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 2%, transparent 2%);
  background-size: 50px 50px;
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .no-print,
  header,
  footer,
  #ctaBanner {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
