/* Non-critical styles - loaded asynchronously */

/* Enhanced hover effects for better mobile experience */
@media (hover: hover) and (pointer: fine) {
  .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}

/* Responsive font sizing */
.responsive-text-xs {
  font-size: clamp(0.625rem, 2vw, 0.75rem);
}

.responsive-text-sm {
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

.responsive-text-base {
  font-size: clamp(0.875rem, 3vw, 1rem);
}

.responsive-text-lg {
  font-size: clamp(1rem, 3.5vw, 1.125rem);
}

.responsive-text-xl {
  font-size: clamp(1.125rem, 4vw, 1.25rem);
}

.responsive-text-2xl {
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
}

.responsive-text-3xl {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
}

.responsive-text-4xl {
  font-size: clamp(1.875rem, 6vw, 2.25rem);
}

.responsive-text-5xl {
  font-size: clamp(2.25rem, 7vw, 3rem);
}

/* Animation utilities */
.animate-in {
  animation: slideInFromBottom 0.6s ease-out;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Better mobile navigation */
@media (max-width: 768px) {
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 50;
  }
  
  .mobile-nav-dark {
    background: rgba(17, 24, 39, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .high-contrast {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .motion-reduce {
    animation: none !important;
    transition: none !important;
  }
  
  .motion-reduce:hover {
    transform: none !important;
  }
}

/* Better form controls on mobile */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Safe area insets for mobile devices with notches */
@supports (padding: max(0px)) {
  .safe-area-inset {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
