/**
 * Review Badge Styles - Enhanced
 */

.review-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: help;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.review-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.review-badge:hover::before {
  left: 100%;
}

.review-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-badge__icon {
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.review-badge__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* AI Only Badge - Neutral Gray */
.review-badge--ai {
  background-color: #d1d5db;
  color: #374151;
  border: 2px solid #9ca3af;
}

.review-badge--ai:hover {
  background-color: #9ca3af;
  border-color: #6b7280;
}

/* Human Reviewed Badge - Vibrant Blue */
.review-badge--human {
  background-color: #3b82f6;
  color: #ffffff;
  border: 2px solid #1e40af;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.review-badge--human:hover {
  background-color: #2563eb;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.review-badge--human .review-badge__icon {
  color: #86efac;
  font-size: 20px;
}

/* Expert Verified Badge - Bright Gold/Orange */
span.review-badge.review-badge--expert {
  background-color: #ff9800 !important;
  background: #ff9800 !important;
  color: #ffffff !important;
  border: 2px solid #f57c00 !important;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4) !important;
}

span.review-badge.review-badge--expert:hover {
  background-color: #fb8c00 !important;
  background: #fb8c00 !important;
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5) !important;
}

span.review-badge.review-badge--expert .review-badge__icon {
  color: #ffffff !important;
  font-size: 22px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Teaser/Card View */
.appraisal-card .review-badges-wrapper {
  margin-bottom: 8px;
}

.appraisal-card .review-badge {
  font-size: 12px;
  padding: 4px 10px;
}

/* Full View */
.appraisal-detail .review-badge-wrapper {
  margin: 12px 0;
}

.appraisal-detail .review-badge {
  font-size: 14px;
  padding: 8px 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .review-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .review-badge__icon {
    font-size: 13px;
  }
}
