/* Main CSS - Supplementary styles for Tailwind */

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

/* Body scroll lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Focus visible styles for keyboard accessibility */
*:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom selection color */
::selection {
  background-color: #ccfbf1;
  color: #134e4a;
}

/* Smooth transitions for interactive elements */
a,
button,
input,
textarea {
  transition: all 0.2s ease-in-out;
}

/* Form input placeholder styling */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-size: 0.9375rem;
}

/* Form validation states */
input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #dc2626;
}

input:valid:not(:placeholder-shown) {
  border-color: #059669;
}

/* Mobile menu animation */
#mobile-menu .absolute.right-0 {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.open .absolute.right-0 {
  transform: translateX(0);
}

#mobile-menu .absolute.inset-0 {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu.open .absolute.inset-0 {
  opacity: 1;
}

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

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Cookie consent slide-in animation */
#cookie-consent {
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Registration success animation */
#registration-success {
  animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Blockquote styling */
blockquote,
.border-l-4 {
  font-style: italic;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookie-consent,
  #mobile-menu {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
    color: #000;
  }
}

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

/* Ensure minimum touch target size */
@media (pointer: coarse) {
  button,
  a,
  input,
  textarea {
    min-height: 44px;
  }
}

/* Typography baseline */
body {
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

/* Image fallback background */
img {
  background-color: #e7e5e4;
}

/* Prose content spacing */
.prose p + p {
  margin-top: 1rem;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #0d9488;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  font-weight: 600;
}

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