/* Oncology Breakthrough Aggregator - Custom Styles */

/* Base styles and utilities */
.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background: linear-gradient(to right, var(--tw-gradient-stops));
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Animation utilities */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

/* Custom hover effects */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* File upload styles */
.upload-area {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload-area:hover {
  border-color: #3b82f6;
  background-color: #dbeafe;
}

.upload-area.dragover {
  border-color: #2563eb;
  background-color: #bfdbfe;
}

/* Progress bar animations */
@keyframes progress {
  0% { width: 0%; }
}

.progress-bar {
  animation: progress 0.3s ease-out;
}

/* Treatment card hover effects */
.treatment-card {
  transition: all 0.3s ease;
}

.treatment-card: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);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-orange {
  background-color: #fed7aa;
  color: #c2410c;
}

.badge-red {
  background-color: #fecaca;
  color: #dc2626;
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-info {
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.alert-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-warning {
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.alert-error {
  background-color: #fecaca;
  border: 1px solid #f87171;
  color: #dc2626;
}

/* Loading animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom scrollbar */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus styles for accessibility */
.focus\:ring-2:focus {
  ring-width: 2px;
  ring-color: #3b82f6;
  ring-opacity: 0.5;
  outline: none;
}

.focus\:ring-blue-500:focus {
  ring-color: #3b82f6;
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.5;
  }
  
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-after: always;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-blue-600 {
    background-color: #1e40af;
  }
  
  .text-gray-600 {
    color: #374151;
  }
  
  .border-gray-300 {
    border-color: #6b7280;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .transition-all,
  .transition-colors,
  .transition-shadow {
    transition: none;
  }
  
  .animate-pulse {
    animation: none;
  }
  
  .spinner {
    animation: none;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
  }
}

/* Treatment match score styling */
.match-score-high {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.match-score-medium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.match-score-low {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Clinical trial phase styling */
.phase-approved {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.phase-3 {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.phase-2 {
  background-color: #fed7aa;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.phase-1 {
  background-color: #fecaca;
  color: #dc2626;
  border: 1px solid #f87171;
}

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Medical icon styling */
.medical-icon {
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.1));
}

/* Pricing card enhancements */
.pricing-card-popular {
  position: relative;
  border: 2px solid #3b82f6;
  box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.1);
}

.pricing-card-popular::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 0.75rem;
  z-index: -1;
}

/* Step indicator styling */
.step-indicator {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Progress timeline */
.timeline-step {
  position: relative;
  padding-left: 2rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: -1rem;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #e5e7eb);
}

.timeline-step:last-child::before {
  display: none;
}

/* Notification badges */
.notification-badge {
  position: relative;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.25rem;
}