/**
 * SwiftSpot Component Styles
 * 
 * Consolidated component-specific CSS for better organization and maintainability.
 * This file contains styles for UI components, animations, and interactive elements.
 * 
 * Previously scattered across:
 * - toast.css (notification styles)
 * - components/listings.css (listing wizard styles)
 * 
 * Organized into logical sections for easy maintenance.
 */


/* ============================================================================
   TOAST NOTIFICATION COMPONENTS
   ============================================================================ */

/**
 * Toast Notification System
 * Provides styled notification popups with various types and responsive design
 */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Type Variants */
.toast-success { 
  background-color: #38a169; 
  color: #fff; 
}

.toast-info { 
  background-color: #3182ce; 
  color: #fff; 
}

.toast-danger, 
.toast-error { 
  background-color: #e53e3e; 
  color: #fff; 
}

.toast-warning { 
  background-color: #ed8936; 
  color: #fff; 
}

/* Toast Links */
.toast a { 
  color: #fff; 
  text-decoration: underline; 
}

.toast a:hover { 
  text-decoration: none; 
}

/* Dark Mode Toast Variants */
.dark .toast-success { 
  background-color: #2f855a; 
}

.dark .toast-info { 
  background-color: #2b6cb0; 
}

.dark .toast-danger, 
.dark .toast-error { 
  background-color: #c53030; 
}

.dark .toast-warning { 
  background-color: #dd6b20; 
}

/* Toast Responsive Design */
@media (max-width: 640px) {
  #toast-container {
    left: 1rem;
    right: 1rem;
    max-width: 90%;
    width: auto;
  }
}


/* ============================================================================
   LISTING WIZARD COMPONENTS
   ============================================================================ */

/**
 * Multi-Step Wizard Interface
 * Provides step-based form navigation and progress indication
 */

/* Wizard Step Display */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* Progress Bar */
.progress-bar-floating {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Indicators */
.step-number {
  transition: all 0.3s ease;
}

.step-number.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  transform: scale(1.1);
}

.step-number.completed {
  background: linear-gradient(135deg, #10b981, #059669);
}

.step-number.completed .step-inner::before {
  content: "✓";
  font-size: 12px;
  font-weight: bold;
  color: white;
}


/* ============================================================================
   FORM ANIMATIONS AND TRANSITIONS
   ============================================================================ */

/**
 * Form Field Animations
 * Smooth entrance animations for form elements
 */
.field-group {
  animation: fadeInUp 0.6s ease-out;
}

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


/* ============================================================================
   NOTIFICATION ANIMATIONS
   ============================================================================ */

/**
 * Notification Slide Animations
 * Smooth slide-in and slide-out effects for notifications
 */
.notification-slide-in {
  animation: slideInFromRight 0.3s ease-out;
}

.notification-slide-out {
  animation: slideOutToRight 0.3s ease-out;
}

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

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


/* ============================================================================
   MODAL ANIMATIONS
   ============================================================================ */

/**
 * Modal Animation System
 * Smooth modal entrance and exit animations
 */
.animate-modal-slide-in {
  animation: modalSlideIn 0.2s ease-out;
}

.animate-modal-slide-out {
  animation: modalSlideOut 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
}


/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/**
 * Common utility classes for component styling
 */

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for better accessibility */
.focus-ring:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
.smooth-transition {
  transition: all 0.2s ease-in-out;
} 