/* Gathers Platform - Enhanced Custom Styles */

/* Enhanced animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Enhanced animation utilities */
.animate-slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in-left {
  animation: slideInLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in-right {
  animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-pulse-slow {
  animation: pulse 2s infinite;
}

.animate-shimmer {
  animation: shimmer 1.5s infinite;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Enhanced component styles */
.gathers-card {
  @apply bg-white rounded-xl shadow-sm border border-gray-100 p-6 transition-all duration-300;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.gathers-card:hover {
  @apply shadow-lg border-gray-200;
  transform: translateY(-3px) scale(1.02);
}

.gathers-card-interactive {
  @apply gathers-card cursor-pointer;
}

.gathers-card-interactive:hover {
  @apply shadow-xl;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.gathers-button-primary {
  @apply bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2;
}

.gathers-button-secondary {
  @apply bg-white hover:bg-gray-50 text-gray-700 font-medium py-3 px-6 rounded-lg border border-gray-200 hover:border-gray-300 shadow-sm hover:shadow-md transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

.gathers-button-success {
  @apply bg-gradient-to-r from-green-600 to-green-700 hover:from-green-700 hover:to-green-800 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2;
}

.gathers-button-warning {
  @apply bg-gradient-to-r from-orange-600 to-orange-700 hover:from-orange-700 hover:to-orange-800 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2;
}

.gathers-button-danger {
  @apply bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 text-white font-semibold py-3 px-6 rounded-lg shadow-md hover:shadow-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2;
}

.gathers-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-orange-500 transition-all duration-200 bg-white placeholder-gray-400;
}

.gathers-input:focus {
  @apply shadow-md;
  transform: translateY(-1px);
}

.gathers-textarea {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-orange-500 transition-all duration-200 resize-vertical bg-white placeholder-gray-400;
}

.gathers-textarea:focus {
  @apply shadow-md;
  transform: translateY(-1px);
}

.gathers-select {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-orange-500 transition-all duration-200 bg-white cursor-pointer;
}

.gathers-select:focus {
  @apply shadow-md;
  transform: translateY(-1px);
}

/* Enhanced form labels */
.gathers-label {
  @apply block text-sm font-semibold text-gray-700 mb-2;
}

.gathers-label-required::after {
  content: ' *';
  @apply text-red-500;
}

/* Icon input groups */
.gathers-input-group {
  @apply relative;
}

.gathers-input-group .gathers-input {
  @apply pl-10;
}

.gathers-input-group .gathers-input-icon {
  @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 transition-colors duration-200;
}

.gathers-input-group .gathers-input:focus + .gathers-input-icon {
  @apply text-orange-500;
}

/* Match compatibility score indicator */
.compatibility-score {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.compatibility-score::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  border-radius: 2px;
  z-index: -1;
}

.compatibility-score-85::before { width: 85%; }
.compatibility-score-80::before { width: 80%; }
.compatibility-score-75::before { width: 75%; }
.compatibility-score-70::before { width: 70%; }
.compatibility-score-65::before { width: 65%; }

/* Status badges */
.status-badge {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.status-active {
  @apply bg-green-100 text-green-800;
}

.status-pending {
  @apply bg-yellow-100 text-yellow-800;
}

.status-interested {
  @apply bg-blue-100 text-blue-800;
}

.status-contacted {
  @apply bg-purple-100 text-purple-800;
}

.status-declined {
  @apply bg-gray-100 text-gray-800;
}

/* Notification styles */
.notification-item {
  @apply p-4 border-l-4 bg-white rounded-lg shadow-sm;
}

.notification-match { @apply border-l-blue-500; }
.notification-recommendation { @apply border-l-green-500; }
.notification-invitation { @apply border-l-purple-500; }
.notification-system { @apply border-l-gray-400; }

.notification-unread {
  @apply bg-blue-50;
}

/* Loading states */
.skeleton {
  @apply bg-gray-200 animate-pulse;
}

.skeleton-text {
  @apply h-4 bg-gray-200 rounded animate-pulse;
}

.skeleton-avatar {
  @apply w-12 h-12 bg-gray-200 rounded-full animate-pulse;
}

/* Responsive design helpers */
@screen sm {
  .gathers-card {
    @apply p-8;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .gathers-card {
    @apply shadow-none border border-gray-400;
  }
}

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

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

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

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

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

/* Enhanced navigation styles */
.gathers-nav-item {
  @apply flex items-center w-full px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition-all duration-200 cursor-pointer hover:bg-orange-50 hover:text-orange-600;
}

.gathers-nav-item.active {
  @apply bg-gradient-to-r from-orange-50 to-red-50 text-orange-600 shadow-sm;
  background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%);
}

.gathers-nav-item:hover:not(.active) {
  transform: translateX(4px);
}

.gathers-nav-item i:first-child {
  @apply mr-3 w-5 text-center;
}

/* Enhanced status badges */
.gathers-status-badge {
  @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold shadow-sm;
}

.gathers-status-success {
  @apply bg-gradient-to-r from-green-100 to-green-200 text-green-800 border border-green-300;
}

.gathers-status-warning {
  @apply bg-gradient-to-r from-yellow-100 to-yellow-200 text-yellow-800 border border-yellow-300;
}

.gathers-status-info {
  @apply bg-gradient-to-r from-orange-100 to-orange-200 text-orange-800 border border-orange-300;
}

.gathers-status-error {
  @apply bg-gradient-to-r from-red-100 to-red-200 text-red-800 border border-red-300;
}

.gathers-status-neutral {
  @apply bg-gradient-to-r from-gray-100 to-gray-200 text-gray-800 border border-gray-300;
}

/* Progress indicators */
.gathers-progress {
  @apply w-full bg-gray-200 rounded-full h-3 overflow-hidden;
}

.gathers-progress-bar {
  @apply h-full rounded-full transition-all duration-500 ease-out;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.gathers-progress-bar.high {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.gathers-progress-bar.medium {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.gathers-progress-bar.low {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Loading states */
.gathers-skeleton {
  @apply bg-gradient-to-r from-gray-200 via-gray-300 to-gray-200 animate-shimmer rounded;
  background-size: 200% 100%;
}

.gathers-loading-spinner {
  @apply inline-block w-4 h-4 border-2 border-current border-r-transparent rounded-full animate-spin;
}

/* Notification styles */
.gathers-notification {
  @apply p-4 rounded-lg shadow-md border-l-4 transition-all duration-300;
}

.gathers-notification.success {
  @apply bg-green-50 border-l-green-400 text-green-800;
}

.gathers-notification.warning {
  @apply bg-yellow-50 border-l-yellow-400 text-yellow-800;
}

.gathers-notification.error {
  @apply bg-red-50 border-l-red-400 text-red-800;
}

.gathers-notification.info {
  @apply bg-orange-50 border-l-orange-400 text-orange-800;
}

/* Tooltip styles */
.gathers-tooltip {
  @apply absolute z-10 px-3 py-2 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-lg opacity-0 invisible transition-all duration-200;
}

.gathers-tooltip.show {
  @apply opacity-100 visible;
}

/* Modal and overlay styles */
.gathers-overlay {
  @apply fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center opacity-0 invisible transition-all duration-300;
}

.gathers-overlay.show {
  @apply opacity-100 visible;
}

.gathers-modal {
  @apply bg-white rounded-xl shadow-2xl max-w-lg w-full mx-4 transform scale-95 transition-transform duration-300;
}

.gathers-overlay.show .gathers-modal {
  @apply scale-100;
}

/* Enhanced matching cards */
.gathers-match-card {
  @apply gathers-card-interactive relative overflow-hidden;
}

.gathers-match-card::before {
  content: '';
  @apply absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-orange-400 via-red-500 to-orange-600;
}

.gathers-match-card:hover::before {
  @apply from-orange-500 via-red-600 to-orange-700;
}

/* Company logo placeholders */
.gathers-company-logo {
  @apply w-12 h-12 bg-gradient-to-br from-orange-100 to-red-200 rounded-full flex items-center justify-center text-orange-600 font-semibold text-lg;
}

.gathers-company-logo.large {
  @apply w-16 h-16 text-xl;
}

/* Responsive enhancements */
@screen sm {
  .gathers-card {
    @apply p-8;
  }
}

@screen md {
  .gathers-match-card:hover {
    transform: translateY(-5px) scale(1.03);
  }
}

/* Dark mode support (enhanced) */
@media (prefers-color-scheme: dark) {
  .gathers-card {
    @apply bg-gray-800 border-gray-700;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .gathers-input, .gathers-textarea, .gathers-select {
    @apply bg-gray-800 border-gray-600 text-white placeholder-gray-400;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .animate-slide-in-up,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-fade-in,
  .animate-shimmer,
  .animate-bounce-slow {
    animation: none;
  }
  
  .gathers-card:hover,
  .gathers-button-primary:hover,
  .gathers-input:focus,
  .gathers-nav-item:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gathers-card {
    @apply border-2 border-gray-800;
  }
  
  .gathers-button-primary {
    @apply border-2 border-blue-800;
  }
}