/* Modal Enhancement Styles */

/* Base modal styling */
#card-modal {
  backdrop-filter: blur(8px);
  z-index: 9999 !important;
}

#modal-content {
  max-width: min(95vw, 1200px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Enhanced modal features styling */
#modal-features li {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

#modal-features li:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

#modal-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #10b981, #059669);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#modal-features li:hover::before {
  opacity: 1;
}

#modal-features svg {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  padding: 2px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #card-modal {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  #modal-content {
    max-height: 85vh;
    border-radius: 1rem;
  }
  
  /* Modal header mobile adjustments */
  #modal-content .relative.p-6 {
    padding: 1.5rem 1rem;
  }
  
  #modal-content .flex.items-center.space-x-4 {
    space-x: 0.75rem;
  }
  
  #modal-icon {
    width: 3rem !important;
    height: 3rem !important;
  }
  
  #modal-title {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  
  #modal-subtitle {
    font-size: 1rem !important;
    margin-top: 0.25rem;
  }
  
  /* Modal body mobile adjustments */
  #modal-content .p-6.space-y-8 {
    padding: 1rem;
    space-y: 1.5rem;
  }
  
  #modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  #modal-features li {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  #modal-features svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  #modal-content {
    max-width: 90vw;
  }
  
  #modal-content .p-6.space-y-8 {
    padding: 2rem;
  }
}

/* Enhanced animations */
#modal-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better scrollbar for modal content */
#modal-content::-webkit-scrollbar {
  width: 6px;
}

#modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus styles for accessibility */
#close-modal:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 50%;
}

/* Feature list enhancements */
#modal-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

#modal-features li:last-child {
  border-bottom: none;
}

/* Beta tag animation */
#modal-beta-tag {
  animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Loading state for modal content */
.modal-loading #modal-content {
  pointer-events: none;
}

.modal-loading #modal-description,
.modal-loading #modal-features {
  opacity: 0.6;
}