/*==================================================
  TRUST BADGES - User Verification System
  Version: 1.0
  Created: January 2026
  Sprint 4 Phase 3
==================================================*/

/* Badge Container */
.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}

/* Base Badge Style */
.badge-verified {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.badge-verified i {
  font-size: 14px;
}

.badge-verified:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Email Verified Badge (Green) */
.badge-email-verified {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
}

.badge-email-verified i {
  color: #10B981;
}

/* Identity Verified Badge (Blue) */
.badge-identity-verified {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #3B82F6;
}

.badge-identity-verified i {
  color: #3B82F6;
}

/* Payment Verified Badge (Gold) */
.badge-payment-verified {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
}

.badge-payment-verified i {
  color: #F59E0B;
}

/* Top Rated Badge (Gradient Gold with Animation) */
.badge-top-rated {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  color: #78350F;
  border: 1px solid #D97706;
  font-weight: 600;
  animation: shimmer 3s ease-in-out infinite;
}

.badge-top-rated i {
  color: #78350F;
}

@keyframes shimmer {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  }
}

/* Pro Freelancer Badge (Purple with Glow) */
.badge-pro-freelancer {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  color: #FFFFFF;
  border: 1px solid #6D28D9;
  font-weight: 600;
  animation: glow 2s ease-in-out infinite;
}

.badge-pro-freelancer i {
  color: #FFFFFF;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.7);
  }
}

/* Compact Badge Style (for cards) */
.badge-verified-compact {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 12px;
}

.badge-verified-compact i {
  font-size: 11px;
}

/* Badge Tooltip */
.badge-verified[title] {
  position: relative;
}

.badge-verified[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Verification Score Badge */
.verification-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #4B5563;
}

.verification-score i {
  color: #F59E0B;
  font-size: 12px;
}

/* RTL Support for Arabic */
body[dir="rtl"] .user-badges {
  flex-direction: row-reverse;
}

body[dir="rtl"] .badge-verified {
  flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .user-badges {
    gap: 6px;
  }

  .badge-verified {
    padding: 5px 10px;
    font-size: 12px;
  }

  .badge-verified-compact {
    padding: 3px 6px;
    font-size: 10px;
  }

  .badge-verified i {
    font-size: 12px;
  }
}

/* Badge Loading State */
.badge-loading {
  background: #E5E7EB;
  color: #9CA3AF;
  border: 1px solid #D1D5DB;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Verification Upload Form */
.verification-upload-form {
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.verification-upload-form:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.verification-upload-form.dragging {
  border-color: #10B981;
  background: #D1FAE5;
}

.upload-icon {
  font-size: 48px;
  color: #9CA3AF;
  margin-bottom: 16px;
}

.upload-label {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
}

.upload-button {
  background: linear-gradient(135deg, #E60026 0%, #B8001F 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.upload-button:hover {
  transform: scale(1.05);
}

.file-preview {
  margin-top: 16px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-preview-icon {
  font-size: 32px;
  color: #3B82F6;
}

.file-preview-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  word-break: break-all;
}

.file-preview-remove {
  color: #EF4444;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.file-preview-remove:hover {
  transform: scale(1.2);
}

/* Admin Verification Panel */
.verification-pending-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.verification-pending-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.verification-pending-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.verification-pending-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.verification-pending-info p {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}

.verification-document {
  background: #F9FAFB;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.verification-document-type {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.verification-document-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.verification-actions {
  display: flex;
  gap: 12px;
}

.btn-approve {
  flex: 1;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-approve:hover {
  background: #059669;
}

.btn-reject {
  flex: 1;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-reject:hover {
  background: #DC2626;
}

/* Success/Error Messages */
.verification-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.verification-message-success {
  background: #D1FAE5;
  color: #065F46;
  border-left: 4px solid #10B981;
}

.verification-message-error {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

.verification-message i {
  font-size: 18px;
}

/* Verification Status Card */
.verification-status-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.verification-status-card h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

/* Verification Section */
.verification-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.verification-section h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

.verification-section p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #6B7280;
}

/* Badge Count Display */
.badge-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #E5E7EB;
  color: #6B7280;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Badge More Indicator */
.badge-more {
  background: #E5E7EB;
  color: #6B7280;
  border: 1px solid #D1D5DB;
}

/* Badge Icon Only (Ultra Compact) */
.badge-icon-only {
  padding: 6px;
  border-radius: 50%;
}

.badge-icon-only i {
  margin: 0;
}

/* Tablet Responsive */
@media (max-width: 992px) {
  .verification-pending-card {
    padding: 16px;
  }

  .verification-actions {
    flex-direction: column;
  }

  .btn-approve,
  .btn-reject {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .badge-verified {
    box-shadow: none !important;
    animation: none !important;
  }

  .verification-actions {
    display: none !important;
  }
}
