/* Custom styles to complement Tailwind CSS */

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

/* Colorful gradient underlines for author links */
.author-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-link:hover::after {
  width: 100%;
}

/* Custom animations for enhanced UX */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom focus styles for better accessibility */
button:focus,
select:focus,
a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Video styling for proper aspect ratio and responsiveness */
video {
  max-width: 100%;
  height: auto;
}

/* Ensure proper text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar for better aesthetics (webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Print styles */
@media print {
  .scroll-to-top {
    display: none !important;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}