/* Custom styles for Resume Matcher */

.card-hover {
  transition: all 0.3s ease;
}

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

.progress-bar {
  transition: width 0.5s ease;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.match-score-high {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.match-score-medium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.match-score-low {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-new {
  background-color: #e0e7ff;
  color: #4338ca;
}

.status-reviewing {
  background-color: #fef3c7;
  color: #b45309;
}

.status-contacted {
  background-color: #ccfbf1;
  color: #0f766e;
}

.status-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
}

.status-hired {
  background-color: #dcfce7;
  color: #15803d;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.wine-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
}

/* Fix long URL overflow in profile cards */
.profile-url {
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  display: block;
}

/* Profile card layout improvements */
.profile-card {
  overflow: hidden;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.profile-info {
  flex: 1;
  min-width: 0; /* Important for text truncation */
}

.profile-score {
  flex-shrink: 0;
}

/* Ensure text doesn't overflow */
.profile-name {
  word-break: break-word;
  overflow-wrap: break-word;
}

.profile-source {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* AI Analysis section */
.ai-analysis {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Highlights list */
.highlights-list {
  word-break: break-word;
  overflow-wrap: break-word;
}
