/**
 * ==========================================
 * 🔍 TRUTH LAYER - Estilos
 * ==========================================
 */

/* ====================================
   🏷️ BADGES DE EVIDENCIA
   ==================================== */

.truth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid currentColor;
  transition: all 0.3s ease;
}

.truth-badge--small {
  padding: 2px 6px;
  font-size: 0.75rem;
  gap: 4px;
}

.truth-badge--verified {
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(10px);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.truth-badge--estimated {
  background: rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(10px);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.truth-badge--missing {
  background: rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(10px);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.truth-badge__icon {
  font-size: 0.9em;
}

.truth-badge__label {
  font-size: 0.9em;
}

/* Badge en campo */
.truth-field-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
  cursor: help;
}

/* ====================================
   📊 BARRA DE PROGRESO
   ==================================== */

.truth-progress {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.truth-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.truth-progress__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.truth-progress__percentage {
  font-size: 1.1rem;
  font-weight: 700;
}

.truth-progress__bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.truth-progress__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.truth-progress__stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.truth-progress__stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ====================================
   ✅ CHECKLIST DE EVIDENCIA
   ==================================== */

.truth-checklist {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.truth-checklist--complete {
  text-align: center;
  padding: 32px;
}

.truth-checklist__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.truth-checklist__message {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.truth-checklist__section {
  margin-bottom: 24px;
}

.truth-checklist__section:last-child {
  margin-bottom: 0;
}

.truth-checklist__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.truth-checklist__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.truth-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.truth-checklist__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.truth-checklist__item--missing {
  border-left: 3px solid #ef4444;
}

.truth-checklist__item--estimated {
  border-left: 3px solid #f59e0b;
}

.truth-checklist__item .truth-checklist__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.truth-checklist__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.truth-checklist__priority {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.truth-checklist__hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ====================================
   📱 RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
  .truth-progress__stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .truth-checklist__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .truth-checklist__priority,
  .truth-checklist__hint {
    align-self: flex-end;
  }
}
