/**
 * TrustyBooker UX Improvements v2 - Styles (FIXED)
 * Removed global transitions, made targeted improvements
 */

/* Loading Spinner Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State Animations */
.empty-state-enhanced {
  animation: slideUp 0.3s ease-out;
}

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

/* Tooltip Improvements */
.tooltip-icon {
  transition: opacity 0.2s, transform 0.2s;
}

.tooltip-icon:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* Validation Success Indicators */
.validation-indicator {
  animation: checkmarkPop 0.25s ease-out;
}

@keyframes checkmarkPop {
  0% {
    transform: translateY(-50%) scale(0);
  }
  60% {
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Mobile Touch Targets - Minimum 44x44px */
@media (max-width: 768px) {
  .mobile-menu a,
  .mobile-menu button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 12px !important;
  }
}

/* Skip to Main Content Link */
.skip-to-main {
  transition: top 0.2s ease-out;
}

.skip-to-main:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced Form Feedback (scoped, not global) */
input:valid:not(:placeholder-shown):focus,
textarea:valid:not(:placeholder-shown):focus,
select:valid:not([value=""]):focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

/* Better Focus Indicators (scoped) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Button Active State (specific, not global) */
.btn:active {
  transform: scale(0.98);
}

/* Accessibility Improvements */
/* Scope pointer-events:none to specific decorative elements only
   (tooltips need to remain hoverable!) */
.validation-indicator[aria-hidden="true"] {
  pointer-events: none;
}

/* Print Styles */
@media print {
  .mobile-menu,
  .notification-drawer,
  .toast-container,
  .skip-to-main,
  #page-loading-overlay {
    display: none !important;
  }
}

/* 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;
  }
}
