/**
 * ==========================================
 * 📊 PREDICTION LEDGER - Estilos
 * ==========================================
 */

.prediction-ledger {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  color: var(--text);
}

.prediction-ledger__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.prediction-ledger__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.prediction-ledger__stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.prediction-ledger__stat {
  flex: 1;
  padding: 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  text-align: center;
}

.prediction-ledger__stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 4px;
}

.prediction-ledger__stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.prediction-ledger__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.prediction-ledger__filter {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.prediction-ledger__filter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
}

.prediction-ledger__filter--active {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #6366f1;
}

.prediction-ledger__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prediction-ledger__item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s;
}

.prediction-ledger__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.prediction-ledger__item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.prediction-ledger__item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.prediction-ledger__item-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prediction-ledger__item-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.prediction-ledger__item-status--tracking {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.prediction-ledger__item-status--verified {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.prediction-ledger__item-status--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.prediction-ledger__item-predictions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.prediction-ledger__prediction-value {
  padding: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  text-align: center;
}

.prediction-ledger__prediction-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.prediction-ledger__prediction-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ✅ NUEVO: Botón de verificación */
.prediction-ledger__item-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-ledger__verify-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prediction-ledger__verify-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Modal de verificación */
.prediction-verify-modal__btn--primary:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.prediction-verify-modal__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.prediction-ledger__item-accuracy {
  margin-top: 12px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  border-radius: 6px;
}

.prediction-ledger__item-accuracy--error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.prediction-ledger__accuracy-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.prediction-ledger__accuracy-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.prediction-ledger__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.prediction-ledger__empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.prediction-ledger__empty-text {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.prediction-ledger__empty-subtext {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .prediction-ledger__stats {
    flex-direction: column;
  }
  
  .prediction-ledger__item-predictions {
    grid-template-columns: 1fr;
  }
}
