/* Custom Styles for Hollywood Bait */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #3bc29f;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #63dbba;
}

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

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

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #3bc29f 0%, #63dbba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #3bc29f;
  outline-offset: 2px;
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  nav,
  .animate-bounce {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

/* Image loading optimization */
img {
  background-color: #d9e2ec;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Navbar scroll effect */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Accessibility: Skip to main content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3bc29f;
  color: #0d1520;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
